MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / casedpath_unc

Function casedpath_unc

fixcoveragefilepaths.py:17–20  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

15
16#----------- Convert case-insensitive path to case-sensitive path -----------
17def casedpath_unc(path):
18 unc, p = os.path.splitdrive(path)
19 r = glob.glob(unc + re.sub(r'([^:/\\])(?=[/\\]|$)', r'[\1]', p))
20 return r and r[0] or path
21
22#----------------------------------------------------------------------
23def modifyXML(infile, sourcepath, outfile):

Callers 1

modifyXMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected