I'm using Google App Engine running Node.js that is returning a null value in my Android Studio app. Logcat looks good, but the Google App Engine Console is returning an error:
Error: ENOENT: no such file or directory, mkdir '/foldername/foldername'
The applicable code in my index.js file is:
'''
app.post('/update-account', async (req,res)=>{
//const dir = "./foldername/"foldername
const dir = "/foldername/"+foldername
try {
fs.mkdirSync(dir, { recursive: true }, function(err) {
if (err) {
console.log(err)
} else {
console.log("New directory successfully created.")
}
})
'''
I think this may be a permissions error in Google App Engine??? The foldername is a variable based on account data. I've seen other similar posts about the ENOENT error and have tried several of the solutions and none have resolved the issue for me. Any thoughts are greatly appreciated!
Don't believe it will work for you because it seems you're trying to create a folder in the file system but Google App Engine standard doesn't support that (see documentation). You can only write to the
tmpdirectory