[FIX]RsyncVolumes : fix exclude empty, again

This commit is contained in:
Fabien BOURGEOIS 2021-03-13 08:38:44 +01:00
parent 8da0ae0ec8
commit 9529806dea

View File

@ -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')