Add relative path to file info

This commit is contained in:
shortcutme 2017-01-27 14:00:28 +01:00
parent b29634e906
commit 8b2920c296
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -315,6 +315,7 @@ class ContentManager(object):
if back:
back["content_inner_path"] = content_inner_path
back["optional"] = False
back["relative_path"] = "/".join(inner_path_parts)
return back
# Check in optional files
@ -323,6 +324,7 @@ class ContentManager(object):
if back:
back["content_inner_path"] = content_inner_path
back["optional"] = True
back["relative_path"] = "/".join(inner_path_parts)
return back
# Return the rules if user dir