[FIX]Rsync backup plan isfile had bad handling
This commit is contained in:
parent
528425a579
commit
2e0395f86e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user