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