Strip / from content.json location of file_info

This commit is contained in:
shortcutme 2017-10-26 10:43:10 +02:00
parent 53afd97346
commit e8f049a765
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 1 deletions

View File

@ -307,7 +307,8 @@ class ContentManager(object):
inner_path_parts = [dirs.pop()] # Filename relative to content.json
while True:
content_inner_path = "%s/content.json" % "/".join(dirs)
content = self.contents.get(content_inner_path.strip("/"))
content_inner_path = content_inner_path.strip("/")
content = self.contents.get(content_inner_path)
# Check in files
if content and "files" in content: