parameters: (dirpath, outFullName)
docstring: Compress the specified folder
      :param dirpath: specified folder
      :param outFullName: Save path+xxxx.zip
      :return: null
docstring_summary: Compress the specified folder
      :param dirpath: specified folder
      :param outFullName: Save path+xxxx.zip
      :return: null
docstring_tokens: Compress the specified folder : param dirpath : specified folder : param outFullName : Save path + xxxx . zip : return : null
function: def zip_dir(dirpath, outFullName):
      """
      Compress the specified folder
      :param dirpath: specified folder
      :param outFullName: Save path+xxxx.zip
      :return: null
      """
      dir_dst = "/" + dirpath.rsplit("/", 1)[1]
      zdir = ZipFile(outFullName, "w")
      for path, dirnames, filenames in os.walk(dirpath):
          fpath = dir_dst + path.replace(dirpath, '')
          for filename in filenames:
              zdir.write(os.path.join(path, filename), os.path.join(fpath, filename))
      zdir.close()
function_tokens: def zip_dir ( dirpath , outFullName ) : dir_dst = "/" + dirpath . rsplit ( "/" , 1 ) [ 1 ] zdir = ZipFile ( outFullName , "w" ) for path , dirnames , filenames in os . walk ( dirpath ) : fpath = dir_dst + path . replace ( dirpath , '' ) for filename in filenames : zdir . write ( os . path . join ( path , filename ) , os . path . join ( fpath , filename ) ) zdir . close ( )