Strip / from content.json location of file_info
This commit is contained in:
parent
53afd97346
commit
e8f049a765
1 changed files with 2 additions and 1 deletions
|
@ -307,7 +307,8 @@ class ContentManager(object):
|
||||||
inner_path_parts = [dirs.pop()] # Filename relative to content.json
|
inner_path_parts = [dirs.pop()] # Filename relative to content.json
|
||||||
while True:
|
while True:
|
||||||
content_inner_path = "%s/content.json" % "/".join(dirs)
|
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
|
# Check in files
|
||||||
if content and "files" in content:
|
if content and "files" in content:
|
||||||
|
|
Loading…
Reference in a new issue