Search code examples
javascriptgoogle-chromeoperamozilla

Creating File/Folder with pure JavaScript


I want to know more about FileSystem in Google Chrome, Mozilla or Opera . I have used FSO.js but it didnt help me to create, delete or list local files.

Is there any way of FileSystem with pure JavaScript?


Solution

  • No, there is not. There was a brief attempt to create a sandboxed file area via the Filesystem API, but it was abandoned.

    Right now, the only real file access you have in browser-hosted JavaScript code is via the File API, which is much more limited (though still really useful). It lets you read files the user explicitly gives you permission to read via an input type="file" or drag-and-drop event.