https://github.com/j4ts/j4ts-file
An implementation of the Java File API using a LocalStorage implementation
https://github.com/j4ts/j4ts-file
Last synced: 4 months ago
JSON representation
An implementation of the Java File API using a LocalStorage implementation
- Host: GitHub
- URL: https://github.com/j4ts/j4ts-file
- Owner: j4ts
- Created: 2016-10-03T13:45:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T15:03:56.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T03:39:15.185Z (5 months ago)
- Language: JavaScript
- Homepage: http://www.jsweet.org
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Java File API for the Web
This is a [JSweet](http://www.jsweet.org) implementation of the Java File API using a LocalStorage implementation (LSFS)
This project allows the programmer to access an emulation of a file system implemented on the top of the LocalStorage WEB API. It can access the content using the Java File API, read and write new files within the browser, and import or export files to a regular file system.
## How does it work
The LocalStorage File System creates a directory/file structure in the browser's LocalStorage. It reads and writes file content by encoding and decoding binary data to Base64 strings.
The file system can be imported from a JavaScript image file created with the [lsfs-sync](https://github.com/cincheo/lsfs-sync) utility.
Currently, there is no export feature, but it could be implemented on demand.
## License
Open Source Apache 2.