This is possible in Chrome-based browsers through the File System API but is not supported by Firefox, currently. This was hotly debated on the Firefox web standards git repo, so I wouldn't hold my breath on this being implemented soon.