JavaScript do not have access to client file system, it is for security/safety reasons.
Access to client file system is a dream feature for any malware.
What is possible is
local storage, it is a protected storage space which does not expose client file system.
HTML Web Storage[
^]
[Update]
Quote:
This is wrong. Then how come Flowchart Maker & Online Diagram Software[^] can save and modify the files to folder when Device is chosen ?
The site sends file just like any donwloads and the browser asks me what I want to do with it, save or open it.
The JS of this site does not write directly in my file system.