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

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