MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / PrefixPath

Function PrefixPath

tools/utils.py:132–143  ·  view source on GitHub ↗
(prefix, path)

Source from the content-addressed store, hash-verified

130 walk_children(item)
131
132def PrefixPath(prefix, path):
133 path = os.path.abspath(path)
134 prefix = os.path.abspath(prefix)
135
136 if sys.platform == 'win32':
137 prefix = prefix.lower()
138 path = path.lower()
139
140 if path.startswith(prefix):
141 return True
142
143 return False
144
145def ListMap(l):
146 ret_list = []

Callers 1

ProjectInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected