(argPath,currDir)
| 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 |