title: How do I create a file path on a Mac?
body: <p>I'm working an OS X platform with Python 3 and I'm not quite sure how to create file paths that link into directories. I know that on the Windows platform it would look something like</p>
  
  <pre><code>import os
  path = 'C:\\Users\\User\\Desktop\\&lt;directory name&gt;'
  os.mkdir(path)
  file = open(path + '\\&lt;file name&gt;.txt', w)
  </code></pre>