diff options
-rwxr-xr-x | scan.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -35,6 +35,8 @@ def main(): db = [] with open(DB_FILENAME + '.new', 'wb') as out: for root, dirs, files in os.walk(START_DIR): + if not len(files): + continue files, uuids = partition(lambda f: '/uuid.txt' in f, (os.path.join(root, f) for f in files)) if len(uuids) == 1: |