title: Open: no such file or directory with O_CREAT
body: <p>I'm trying to create a file using the open function, calling it as</p>
  <pre><code>dest_fd = open(fileLocation, O_RDWR | O_CREAT, 0666)
  </code></pre>
  <p>When i run the code i get:</p>
  <pre><code>fileLocations: /tmp/folder/file.a
  open: No such file or directory
  </code></pre>
  <p>(notice that i printed the value for fileLocation to make sure that it wasn't a relative path...)</p>
  <p>I tried to do what i found on the other topics, but it doesn't seems to work, what could it be going wrong?</p>