[FIX]Rsync backup plan isfile had bad handling

This commit is contained in:
Fabien BOURGEOIS 2017-07-19 08:11:36 +02:00
parent 528425a579
commit 2e0395f86e

View File

@ -30,8 +30,9 @@ def zipdir(path, ziph):
# ziph is zipfile handle
for root, dirs, files in walk(path):
for file in files:
if isfile(file):
ziph.write(osjoin(root, file))
pfile = osjoin(root, file)
if isfile(pfile):
ziph.write(pfile)
f = ZipFile(zippath, 'w', ZIP_DEFLATED)
zipdir('${SOURCE}', f)