quit early before running intensive file analysis - on literally nothing

This commit is contained in:
Xevion
2019-11-03 22:21:37 -06:00
parent 00c4a5db98
commit 1d328aeffe

View File

@@ -27,6 +27,9 @@ def run():
files = os.listdir(INPUT_PATH)
select = [file for file in files if os.path.splitext(file)[1][1:].lower() in (RAW_EXTS + LOSSY_EXTS)]
log.info(f'Found {len(select)} valid files')
if len(select) <= 0:
log.fatal('No vald files found, exiting early')
return
# Create the 'temp' directory
if not os.path.exists(TEMP_PATH):