Hello,
I'm trying to write to a file but no matter the file or the permissions I have (e.g., 777) I always get the exception java.nio.file.NoSuchFileException.
Another issue I have is that the documentation for the method writeFile (from the class FileSystem) says that it creates the file but that doesn't happen. I created the file manually but the error continues.
This is my code:
fs.writeFile("~/somefile.txt", Buffer.buffer("Hello"), function(res, res_error) {
if(res_error === null) {
console.log("Ok!");
} else {
console.log("Oh, oh... " + res_error);
}
});
Am I missing something? Thank you