You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "fudom (via GitHub)" <gi...@apache.org> on 2023/12/12 17:04:20 UTC

[I] NOT_FOUND_ERR [cordova-plugin-file]

fudom opened a new issue, #615:
URL: https://github.com/apache/cordova-plugin-file/issues/615

   Not working. Get `NOT_FOUND_ERR` on writeFile. 
   
   ```ts
   const exists = await this.file.checkFile(this.file.externalDataDirectory, 'test.txt');
   if (!exists) {
     await this.file.createFile(this.file.externalDataDirectory, 'test.txt', false);
   }
   await this.file.writeExistingFile(this.file.externalDataDirectory, 'test.txt', 'BLAH');
   ```
   
   Same with `writeFile` with all possible options `append` (`create`) and `replace` (`exclusive`). Nothing works.
   
   How to append write to a file regardless if it exists or not? Just log lines to a file. And if the file does not exist, just create it. It even does not work, if I manually create the work with createFile. I have access to the directory.
   
   ```ts
   // This should work, but does not.
   await this.file.writeFile(path, name, text, { append: true });
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] delete me [cordova-plugin-file]

Posted by "timbru31 (via GitHub)" <gi...@apache.org>.
timbru31 closed issue #615: delete me
URL: https://github.com/apache/cordova-plugin-file/issues/615


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org