Update by ialbert on Wed Apr  4 09:57:03 EDT 2018 from yolo.local
@@ -37,7 +37,10 @@ def scan_files(relpath, abspath, exclude=[]):
b = File()
b.path = f'{relpath}/{f.name}' if relpath else f.name
b.is_dir = f.is_dir()
+ if (os.path.isfile(b.path)):
b.name, b.size = f.name, f.stat().st_size
+ else:
+ b.name, b.size = f.name, 0
return b
files = map(transform, files)
