GitHub user breautek edited a comment on the discussion: Cordova writing to 
persistent filesystem on browser platform

> Can I get to the actual file that is being written on the file system.

Depends on what you mean by this. If you can read the actual file from outside 
the browser? Then no, the filesystem API on the browser is sandboxed. It uses 
the browser API if available (e.g. on Chrome) otherwise it fallsback to an 
IndexedDB implementation. Both implementations are sandboxed/virtual 
filesystems. No file is actually stored on the physical disk (in a traditional 
sense). Instead they are stored in some kind of local database as part of 
browser user data (similar to how cookies or local storage is stored).

You can use the filesystem APIs to read the file however from within your app.

Relevant Links:
- [More on Browser 
Quirks](https://github.com/apache/cordova-plugin-file?tab=readme-ov-file#browser-quirks)
- [Read File 
Example](https://github.com/apache/cordova-plugin-file?tab=readme-ov-file#read-a-file-)


GitHub link: 
https://github.com/apache/cordova/discussions/472#discussioncomment-8878094

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


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

Reply via email to