Skip to content
Snippets Groups Projects
Commit a8ca7256 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Handle deleted and empty files. Obey files location at any tree leaf.

parent 3f237954
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,9 @@ if __name__ == '__main__':
s.value[0]))
pass
for f in tree._file_:
src = os.path.normpath('%s/%s' % (f._parent._parent.files[0],
if f.delete[0] == 'yes' or f.source[0] == '':
continue
src = os.path.normpath('%s/%s' % (f.files[0:],
f.source[0] or f.name[0]))
print('%s[f] %s = %s' % (' '*(indent+1), f.name[0], src))
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment