|
|
|
|
@ -114,6 +114,9 @@ class ArchiveFilerPublic(View):
|
|
|
|
|
with zipfile.ZipFile('filer_public.zip', 'w', zipfile.ZIP_DEFLATED) as zipf:
|
|
|
|
|
for root, dirs, files in os.walk(path):
|
|
|
|
|
for file in files:
|
|
|
|
|
zipf.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..')))
|
|
|
|
|
try:
|
|
|
|
|
zipf.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..')))
|
|
|
|
|
except:
|
|
|
|
|
print(file)
|
|
|
|
|
return HttpResponse('success')
|
|
|
|
|
|
|
|
|
|
|