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