allow for 'Segments' subfolder

This commit is contained in:
rolux 2012-11-04 14:52:07 +01:00
parent 4fad079b84
commit 97018012a3

View file

@ -117,7 +117,7 @@ def organize():
if not file['hash'] in files_by_hash: if not file['hash'] in files_by_hash:
files_by_hash[file['hash']] = [] files_by_hash[file['hash']] = []
files_by_hash[file['hash']].append(file) files_by_hash[file['hash']].append(file)
elif not parts[3] in ['Extras', 'Versions']: elif not parts[3] in ['Extras', 'Segments', 'Versions']:
issues['unexpected directories'].append(path) issues['unexpected directories'].append(path)
# empty directories, missing files # empty directories, missing files
if not filenames or not filter(lambda x: not is_system_file(x), filenames): if not filenames or not filter(lambda x: not is_system_file(x), filenames):