MCPcopy
hub / github.com/DingXiaoH/RepVGG / split_zip_style_path

Method split_zip_style_path

data/zipreader.py:32–39  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

30
31 @staticmethod
32 def split_zip_style_path(path):
33 pos_at = path.index('@')
34 assert pos_at != -1, "character '@' is not found from the given path '%s'" % path
35
36 zip_path = path[0: pos_at]
37 folder_path = path[pos_at + 1:]
38 folder_path = str.strip(folder_path, '/')
39 return zip_path, folder_path
40
41 @staticmethod
42 def list_folder(path):

Callers 4

list_folderMethod · 0.80
list_filesMethod · 0.80
readMethod · 0.80
imreadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected