samir-mahendra commented on issue #412:
URL: 
https://github.com/apache/cordova-plugin-file/issues/412#issuecomment-1767364822

   I know this is an old thread, but if you are OK using the sandboxed file 
system (which is OK for my use case) this works for me in Chrome:
   
   ```
   window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, (fileSystem) => {
      fileSystem.root.getDirectory("MyFiles", { create: true }, (dirEntry) => {
          dirEntry.getFile("test.txt", { create: true, exclusive: false }, 
(fileEntry) => {
               // Use the fileEntry to write/read from the file.
          }, (err) => { console.error("getFile", err); });
      }, (err) => { console.error("getDirectory", err); });
   }, (err) => { console.error("requestFileSystem", err); });
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to