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

Function absolutePath

sdmount.py:74–86  ·  view source on GitHub ↗
(argPath,currDir)

Source from the content-addressed store, hash-verified

72 return((validPath,simpPath))
73
74 def absolutePath(argPath,currDir):
75
76 if argPath[0] == '/':
77 fullPath = argPath
78 elif currDir == '/':
79 fullPath = '/'+argPath
80 else:
81 fullPath = currDir+'/'+argPath
82
83 if len(fullPath) > 1 and fullPath[-1] == '/':
84 fullPath = fullPath[:-1]
85
86 return(fullPath)
87
88 def do_mount(drive,spiNo):
89 sdMounted = False

Callers 1

sdMountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected