MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / split_zip_style_path

Method split_zip_style_path

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

Source from the content-addressed store, hash-verified

37
38 @staticmethod
39 def split_zip_style_path(path):
40 pos_at = path.index('@')
41 assert pos_at != -1, "character '@' is not found from the given path '%s'" % path
42
43 zip_path = path[0: pos_at]
44 folder_path = path[pos_at + 1:]
45 folder_path = str.strip(folder_path, '/')
46 return zip_path, folder_path
47
48 @staticmethod
49 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