[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 root, dirs, files in walk(path):
|
||||||
for file in files:
|
for file in files:
|
||||||
pfile = osjoin(root, file)
|
pfile = osjoin(root, file)
|
||||||
if (isfile(pfile)
|
is_excluded = EXCLUDE_WORDS and any(map(lambda w: w in pfile, EXCLUDE_WORDS))
|
||||||
and EXCLUDE_WORDS
|
if (isfile(pfile) and not is_excluded):
|
||||||
and all(map(lambda w: w not in pfile, EXCLUDE_WORDS))):
|
|
||||||
ziph.write(pfile)
|
ziph.write(pfile)
|
||||||
|
|
||||||
print('Compression started')
|
print('Compression started')
|
||||||
|
Loading…
Reference in New Issue
Block a user