Add relative path to file info
This commit is contained in:
parent
b29634e906
commit
8b2920c296
1 changed files with 2 additions and 0 deletions
|
@ -315,6 +315,7 @@ class ContentManager(object):
|
||||||
if back:
|
if back:
|
||||||
back["content_inner_path"] = content_inner_path
|
back["content_inner_path"] = content_inner_path
|
||||||
back["optional"] = False
|
back["optional"] = False
|
||||||
|
back["relative_path"] = "/".join(inner_path_parts)
|
||||||
return back
|
return back
|
||||||
|
|
||||||
# Check in optional files
|
# Check in optional files
|
||||||
|
@ -323,6 +324,7 @@ class ContentManager(object):
|
||||||
if back:
|
if back:
|
||||||
back["content_inner_path"] = content_inner_path
|
back["content_inner_path"] = content_inner_path
|
||||||
back["optional"] = True
|
back["optional"] = True
|
||||||
|
back["relative_path"] = "/".join(inner_path_parts)
|
||||||
return back
|
return back
|
||||||
|
|
||||||
# Return the rules if user dir
|
# Return the rules if user dir
|
||||||
|
|
Loading…
Reference in a new issue