Returns string representation of a given filepath safe for a single filename usage >>> filePathToSafeString('C:/Windows/system32') 'C__Windows_system32'
(filePath)
| 921 | return list(retVal) |
| 922 | |
| 923 | def filePathToSafeString(filePath): |
| 924 | """ |
| 925 | Returns string representation of a given filepath safe for a single filename usage |
| 926 | |
| 927 | >>> filePathToSafeString('C:/Windows/system32') |
| 928 | 'C__Windows_system32' |
| 929 | """ |
| 930 | |
| 931 | retVal = filePath.replace("/", "_").replace("\\", "_") |
| 932 | retVal = retVal.replace(" ", "_").replace(":", "_") |
| 933 | |
| 934 | return retVal |
| 935 | |
| 936 | def singleTimeDebugMessage(message): |
| 937 | singleTimeLogMessage(message, logging.DEBUG) |
no test coverage detected
searching dependent graphs…