def posixToNtSlashes(filepath):
 return filepath.replace('/', '\\')

def posixToNtSlashes ( filepath ) : return filepath . replace ( '/' , '\\' )
replaces all occurances of posix slashes (/) in provided filepath with nt ones () .