jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.07k stars 218 forks source link

OnWrite events #279

Closed hypernova7 closed 11 months ago

hypernova7 commented 5 years ago

It would be great if in the "writeFile" HTML5FS function they added the progress function to create a progress bar, something like this:

var progress = function progress(writer) {
    console.log((writer.loaded/writer.total)*100);
};
var err = function err(e) {
    console.log(e);
}
fs.writeFile(filename, data, progress, err);
james-pre commented 11 months ago

Closing (stale). If you would like to reopen this issue, please do so by creating a new issue in the relevant repositories of @browser-fs