I am working in python and I need to convert this:
C:\\folderA\\folderB to C:/folderA/folderB
I have three approaches:
dir = s.replace(\'\\\\
How about :
import ntpath import posixpath . . . dir = posixpath.join(*ntpath.split(s)) . .