Replaces all occurrences of NT backslashes in provided filepath with Posix slashes >>> ntToPosixSlashes(r'C:\\Windows') 'C:/Windows'
(filepath)
| 2320 | return filepath.replace('/', '\\') if filepath else filepath |
| 2321 | |
| 2322 | def ntToPosixSlashes(filepath): |
| 2323 | """ |
| 2324 | Replaces all occurrences of NT backslashes in provided |
| 2325 | filepath with Posix slashes |
| 2326 | |
| 2327 | >>> ntToPosixSlashes(r'C:\\Windows') |
| 2328 | 'C:/Windows' |
| 2329 | """ |
| 2330 | |
| 2331 | return filepath.replace('\\', '/') if filepath else filepath |
| 2332 | |
| 2333 | def isHexEncodedString(subject): |
| 2334 | """ |
no test coverage detected
searching dependent graphs…