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

Function pFmt

PyDOS.py:188–196  ·  view source on GitHub ↗
(dPath,trailsep=True)

Source from the content-addressed store, hash-verified

186 return((validPath,simpPath))
187
188 def pFmt(dPath,trailsep=True):
189 if dPath == "":
190 return sep
191 elif dPath == sep:
192 return dPath
193 elif trailsep:
194 return dPath+(sep if dPath[-1]!=sep else "")
195 else:
196 return dPath[:(-1 if dPath[-1] == sep else None)]
197
198 def absolutePath(argPath,currDir):
199

Callers 5

absolutePathFunction · 0.70
dirLoopFunction · 0.70
prDirFunction · 0.70
delFilesFunction · 0.70
PyDOSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected