(filePath)
return retVal
Returns string representation of a given filepath safe for a single filename usage

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

    >>> filePathToSafeString('C:/Windows/system32')
    'C__Windows_system32'
    """

    retVal = filePath.replace("/", "_").replace("\\", "_")
    retVal = retVal.replace(" ", "_").replace(":", "_")

    return retVal
def filePathToSafeString ( filePath ) : retVal = filePath . replace ( "/" , "_" ) . replace ( "\\" , "_" ) retVal = retVal . replace ( " " , "_" ) . replace ( ":" , "_" ) return retVal