parameters: (base_dir, zipfile)
docstring: Zip all the files in base_dir into the given opened zipfile object.
docstring_summary: Zip all the files in base_dir into the given opened zipfile object.
docstring_tokens: Zip all the files in base_dir into the given opened zipfile object .
function: def ZipDirectory(base_dir, zipfile):
    """ Zip all the files in base_dir into the given opened zipfile object.
    """
    for (root, dirs, files) in os.walk(base_dir, followlinks=True):
      for f in files:
        full_name = J(root, f)
        zipfile.write(full_name, os.path.relpath(full_name, base_dir))
function_tokens: def ZipDirectory ( base_dir , zipfile ) : for ( root , dirs , files ) in os . walk ( base_dir , followlinks = True ) : for f in files : full_name = J ( root , f ) zipfile . write ( full_name , os . path . relpath ( full_name , base_dir ) )