[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
|
# ziph is zipfile handle
|
||||||
for root, dirs, files in walk(path):
|
for root, dirs, files in walk(path):
|
||||||
for file in files:
|
for file in files:
|
||||||
if isfile(file):
|
pfile = osjoin(root, file)
|
||||||
ziph.write(osjoin(root, file))
|
if isfile(pfile):
|
||||||
|
ziph.write(pfile)
|
||||||
|
|
||||||
f = ZipFile(zippath, 'w', ZIP_DEFLATED)
|
f = ZipFile(zippath, 'w', ZIP_DEFLATED)
|
||||||
zipdir('${SOURCE}', f)
|
zipdir('${SOURCE}', f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user