title: How to convert back-slashes to forward-slashes?
body: <p>I am working in python and I need to convert this:</p>
  <pre><code>C:\folderA\folderB to C:/folderA/folderB
  </code></pre>
  <p>I have three approaches:</p>
  <pre><code>dir = s.replace('\\','/')
  
  dir = os.path.normpath(s) 
  
  dir = os.path.normcase(s)
  </code></pre>
  <p>In each scenario the output has been</p>
  <pre><code>C:folderAfolderB
  </code></pre>
  <p>I'm not sure what I am doing wrong, any suggestions?</p>