Commit 5b6f29c7 authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Fix parent folders in reports

parent 86e7734a
......@@ -91,7 +91,6 @@ class Sifter:
for child in children:
if not hasattr(self, 'ignore_owner'):
if self.account != child['owners.0.emailAddress']:
print(child['owners.0.emailAddress'])
continue
data = {
......@@ -102,14 +101,15 @@ class Sifter:
'parent': '\\'.join(self.parent)
}
self.parent.append(child['title'])
if in_private or child['title'].lower() in self.omit_folders:
self.private_files[child['id']] = data
if 'folder' in child['mimeType']:
self.parent.append(child['title'])
self.sift(child['id'], in_private=True)
else:
self.transfer_files[child['id']] = data
if 'folder' in child['mimeType']:
self.parent.append(child['title'])
self.sift(child['id'], in_private=False)
self.parent.pop()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment