|
|
|
|
@ -113,6 +113,6 @@ class ArchiveFilerPublic(View):
|
|
|
|
|
with zipfile.ZipFile('filer_public.zip', 'w', zipfile.ZIP_DEFLATED) as zipf:
|
|
|
|
|
for root, dirs, files in os.walk('/app/data/media/filer_public/'):
|
|
|
|
|
for file in files:
|
|
|
|
|
ziph.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..')))
|
|
|
|
|
zipf.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..')))
|
|
|
|
|
return HttpResponse('success')
|
|
|
|
|
|
|
|
|
|
|