let's make the compression a little more predictable

This commit is contained in:
brent s 2017-09-02 10:01:42 -04:00
parent a1925e1053
commit 86eba8b6ab

View File

@ -112,6 +112,7 @@ def compressDB():
return() return()
curdir = os.path.join(sks['destdir'], NOWstr) curdir = os.path.join(sks['destdir'], NOWstr)
for thisdir, dirs, files in os.walk(curdir): # I use os.walk here because we might handle this differently in the future... for thisdir, dirs, files in os.walk(curdir): # I use os.walk here because we might handle this differently in the future...
files.sort()
for f in files: for f in files:
fullpath = os.path.join(thisdir, f) fullpath = os.path.join(thisdir, f)
newfile = '{0}.{1}'.format(fullpath, sks['compress']) newfile = '{0}.{1}'.format(fullpath, sks['compress'])