title: os.mkdir() returns error "FileNotFoundError: [Errno 2] No such file or directory"
body: <p>a very simple code to create a directory:</p>
  
  <pre><code>ssh_path = f"{os.getenv('HOME')}/temp/.ssh"
  print(ssh_path)
  os.mkdir(ssh_path)
  </code></pre>
  
  <p>it prints the path of directory and ends up with error</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: '/Users/myusername/temp/.ssh'
  /Users/myusername/temp/.ssh
  </code></pre>