ios/build/bots/scripts/file_util.py
def zip_and_remove_folder(dir_path):
  """Zips folder storing in the parent folder and then removes original folder.

  Args:
    dir_path: (str) An absolute path to directory.
  """
  shutil.make_archive(
      os.path.join(os.path.dirname(dir_path), os.path.basename(dir_path)),
      'zip', dir_path)
  shutil.rmtree(dir_path)
Zips folder storing in the parent folder and then removes original folder.

  Args:
    dir_path: (str) An absolute path to directory.
  
Zips folder storing in the parent folder and then removes original folder.
Zips folder storing in the parent folder and then removes original folder .
def zip_and_remove_folder(dir_path):
  shutil.make_archive(
      os.path.join(os.path.dirname(dir_path), os.path.basename(dir_path)),
      'zip', dir_path)
  shutil.rmtree(dir_path)
def zip_and_remove_folder ( dir_path ) : shutil . make_archive ( os . path . join ( os . path . dirname ( dir_path ) , os . path . basename ( dir_path ) ) , 'zip' , dir_path ) shutil . rmtree ( dir_path )
Zips folder storing in the parent folder and then removes original folder.
Zips folder storing in the parent folder and then removes original folder .
"""Zips folder storing in the parent folder and then removes original folder.

  Args:
    dir_path: (str) An absolute path to directory.
  """
dir_path
(str) An absolute path to directory.
( str ) An absolute path to directory .