added sorting so as to give some idea when it will finish.

This commit is contained in:
ajurna
2020-05-26 11:07:13 +01:00
parent 2e7c0555c2
commit d64f1c16bd

View File

@@ -42,7 +42,7 @@ class Command(BaseCommand):
for book in books:
if not os.path.isfile(os.path.join(comic_dir, book.file_name)):
book.delete()
for file in os.listdir(comic_dir):
for file in sorted(os.listdir(comic_dir)):
if isdir(os.path.join(comic_dir, file)):
if self.OUTPUT:
logger.info(f"Scanning Directory {file}")