MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / ntToPosixSlashes

Function ntToPosixSlashes

lib/core/common.py:2322–2331  ·  view source on GitHub ↗

Replaces all occurrences of NT backslashes in provided filepath with Posix slashes >>> ntToPosixSlashes(r'C:\\Windows') 'C:/Windows'

(filepath)

Source from the content-addressed store, hash-verified

2320 return filepath.replace('/', '\\') if filepath else filepath
2321
2322def 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
2333def isHexEncodedString(subject):
2334 """

Callers 10

fileExistsThreadFunction · 0.90
_cleanupOptionsFunction · 0.90
uploadShellcodeexecMethod · 0.90
uploadIcmpshSlaveMethod · 0.90
_webFileInjectMethod · 0.90
webInitMethod · 0.90
getRemoteTempPathMethod · 0.90
udfSetRemotePathMethod · 0.90
getManualDirectoriesFunction · 0.85
getAutoDirectoriesFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…