MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / absolutePath

Function absolutePath

fileview.py:54–66  ·  view source on GitHub ↗
(argPath,currDir)

Source from the content-addressed store, hash-verified

52 return((validPath,simpPath))
53
54 def absolutePath(argPath,currDir):
55
56 if argPath[0] == '/':
57 fullPath = argPath
58 elif currDir == '/':
59 fullPath = '/'+argPath
60 else:
61 fullPath = currDir+'/'+argPath
62
63 if len(fullPath) > 1 and fullPath[-1] == '/':
64 fullPath = fullPath[:-1]
65
66 return(fullPath)
67
68
69 if __name__ == "PyDOS":

Callers 1

viewFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected