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

Function filePathToSafeString

lib/core/common.py:923–934  ·  view source on GitHub ↗

Returns string representation of a given filepath safe for a single filename usage >>> filePathToSafeString('C:/Windows/system32') 'C__Windows_system32'

(filePath)

Source from the content-addressed store, hash-verified

921 return list(retVal)
922
923def 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
936def singleTimeDebugMessage(message):
937 singleTimeLogMessage(message, logging.DEBUG)

Callers 1

dataToOutFileFunction · 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…