How to download files to the local file directory specified by the user by JS

through consulting materials, it is found that there are two main ways to download JS files on the Internet:
1. Using the downLoad attribute of the a tag, through URL.createObjectURL ()
2. Use the file system FileSystem, to download the files to sandboxie in the browser.
(for example:

window.webkitRequestFileSystem(Window.TEMPORARY,1024*1024,function(fs) {
                var fileEntry = fs.root.getFile("Test.txt",{create: true});
                var fileWriter = fileEntry.createWriter();
                fileWriter.seek(10);
                var blob = new Blob(["hello,the world"]);
                fileWriter.write(blob);
                console.log("Successfuly")
            },(err) => {
                console.log(err);
            });
        }

would like to ask all code friends how to achieve JS download files to the specified local file directory?

Mar.01,2021

reasoning is impossible. Browsers and JS are not aware of the user's file system, for security reasons

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea8d3b-6967a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea8d3b-6967a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?