original_docstring:  Adds the sourceFile to the zip archive at the indicated name.
      If it is a directory, recursively adds all nested files as
      well. 
docstring: Adds the sourceFile to the zip archive at the indicated name.
  If it is a directory, recursively adds all nested files as
  well.
docstring_tokens: Adds the sourceFile to the zip archive at the indicated name . If it is a directory recursively adds all nested files as well .
code: def addZipTree(zip, sourceFile, zipName):
      """ Adds the sourceFile to the zip archive at the indicated name.
      If it is a directory, recursively adds all nested files as
      well. """
  
      if os.path.isdir(sourceFile):
          subdirs = os.listdir(sourceFile)
          for subdir in subdirs:
              addZipTree(zip, os.path.join(sourceFile, subdir),
                         zipName + '/' + subdir)
  
      else:
          # Not a directory, just add the file.
          zip.write(sourceFile, zipName)
code_tokens: def addZipTree ( zip , sourceFile , zipName ) : if os . path . isdir ( sourceFile ) : subdirs = os . listdir ( sourceFile ) for subdir in subdirs : addZipTree ( zip , os . path . join ( sourceFile , subdir ) , zipName + '/' + subdir ) else : zip . write ( sourceFile , zipName )
short_docstring: Adds the sourceFile to the zip archive at the indicated name.
short_docstring_tokens: Adds the sourceFile to the zip archive at the indicated name .
comment: """ Adds the sourceFile to the zip archive at the indicated name.
      If it is a directory, recursively adds all nested files as
      well. """$SEP$# Not a directory, just add the file.