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: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org