Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
use basename to hide directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
zalun committed Feb 25, 2014
1 parent ac95800 commit 541be60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/jetpack/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ def all_zip(request, pk):
zip_targetpath = os.path.join(settings.XPI_TARGETDIR, zip_targetname)
with closing(ZipFile(zip_targetpath, 'w', ZIP_DEFLATED)) as z:
for fn in zips:
z.write(fn)
z.write(fn, os.path.basename(fn))
log.info('[zipall:%s] Downloading All zipped' % pk)

response = serve(request, zip_targetpath, '/', show_indexes=False)
Expand Down

0 comments on commit 541be60

Please sign in to comment.