[FIX]RsyncVolumes : fix exclude empty, again
This commit is contained in:
parent
8da0ae0ec8
commit
9529806dea
@ -36,9 +36,8 @@ def zipdir(path, ziph):
|
||||
for root, dirs, files in walk(path):
|
||||
for file in files:
|
||||
pfile = osjoin(root, file)
|
||||
if (isfile(pfile)
|
||||
and EXCLUDE_WORDS
|
||||
and all(map(lambda w: w not in pfile, EXCLUDE_WORDS))):
|
||||
is_excluded = EXCLUDE_WORDS and any(map(lambda w: w in pfile, EXCLUDE_WORDS))
|
||||
if (isfile(pfile) and not is_excluded):
|
||||
ziph.write(pfile)
|
||||
|
||||
print('Compression started')
|
||||
|
Loading…
Reference in New Issue
Block a user