Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix zipDirectory to exclude the directory from the zip folder structure

  • Loading branch information...
commit d37ed11f4031c9e9380605bab684f063aa64db29 1 parent 6edc449
Paddy paddyforan authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 iron_worker/
5 iron_worker/
@@ -659,7 +659,7 @@ def zipDirectory(directory, destination, overwrite=False):
return False
return IronWorker.createZip(files=files, destination=destination,
- overwrite=overwrite)
+ overwrite=overwrite, root_dir=directory)
def getFilenames(directory):
@@ -672,6 +672,5 @@ def getFilenames(directory):
names = []
for dirname, dirnames, filenames in os.walk(directory):
for filename in filenames:
- path = dirname.split(os.sep)
- names.append(os.path.join(os.sep.join(path[1:]), filename))
+ names.append(os.path.join(dirname, filename))
return names
Please sign in to comment.
Something went wrong with that request. Please try again.