add 'missing files' warning
This commit is contained in:
parent
c1bdd48579
commit
5be6bb980e
1 changed files with 8 additions and 2 deletions
|
@ -73,6 +73,7 @@ def organize():
|
||||||
'empty directories': [],
|
'empty directories': [],
|
||||||
'incorrect filenames': [],
|
'incorrect filenames': [],
|
||||||
'incorrect filenames (target exists)': [],
|
'incorrect filenames (target exists)': [],
|
||||||
|
'missing files': [],
|
||||||
'missing subtitles': [],
|
'missing subtitles': [],
|
||||||
'missing video': [],
|
'missing video': [],
|
||||||
'multiple versions': [],
|
'multiple versions': [],
|
||||||
|
@ -118,8 +119,12 @@ def organize():
|
||||||
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', 'Versions']:
|
||||||
issues['unexpected directories'].append(path)
|
issues['unexpected directories'].append(path)
|
||||||
if not dirnames and (not filenames or not filter(lambda x: not is_system_file(x), filenames)):
|
# empty directories, missing files
|
||||||
issues['empty directories'].append(relative_path)
|
if not filenames or not filter(lambda x: not is_system_file(x), filenames):
|
||||||
|
if not dirnames:
|
||||||
|
issues['empty directories'].append(relative_path)
|
||||||
|
elif len(relative_path.split('/')) == 3:
|
||||||
|
issues['missing files'].append(relative_path)
|
||||||
|
|
||||||
print 'Scanning for duplicates'
|
print 'Scanning for duplicates'
|
||||||
for hash in files_by_hash:
|
for hash in files_by_hash:
|
||||||
|
@ -233,6 +238,7 @@ def organize():
|
||||||
],
|
],
|
||||||
'resolve': [
|
'resolve': [
|
||||||
'duplicate files',
|
'duplicate files',
|
||||||
|
'missing files',
|
||||||
'missing subtitles',
|
'missing subtitles',
|
||||||
'missing video',
|
'missing video',
|
||||||
'multiple versions',
|
'multiple versions',
|
||||||
|
|
Loading…
Reference in a new issue