MCPcopy Index your code
hub / github.com/RetiredWizard/PyDOS / absolutePath

Function absolutePath

PyDOS.py:198–209  ·  view source on GitHub ↗
(argPath,currDir)

Source from the content-addressed store, hash-verified

196 return dPath[:(-1 if dPath[-1] == sep else None)]
197
198 def absolutePath(argPath,currDir):
199
200 if argPath[:1] == sep:
201 fullPath = argPath
202 elif currDir == sep:
203 fullPath = sep+argPath
204 else:
205 fullPath = currDir+sep+argPath
206
207 fullPath = pFmt(fullPath,False)
208
209 return(fullPath)
210
211 srtFnc = lambda v,dP: f"{str(os.stat(dP+v)[0]&(32768))[0]}{v.lower()}*{v}"
212

Callers 2

prDirFunction · 0.70
PyDOSFunction · 0.70

Calls 1

pFmtFunction · 0.70

Tested by

no test coverage detected