speed up file scanning

use `set` instead of `list` to speed up the scanning of large numbers of files (>10000) in `images/`.
pull/453/head
yzqzss 1 year ago committed by GitHub
parent 0c4c54dc9e
commit 392fbce083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2250,7 +2250,7 @@ def resumePreviousDump(config={}, other={}):
listdir = os.listdir('%s/images' % (config['path']))
except:
pass # probably directory does not exist
listdir.sort()
listdir = set(listdir)
complete = True
lastfilename = ''
lastfilename2 = ''

Loading…
Cancel
Save