问题
I am writing a front end program to load when my hard drive is plugged in. The file is called Boot.htm, so to get this name I use
var url = window.location.pathname;
var filename = url.substring(url.lastIndexOf('/')+1);
alert(filename);
Can I get the names of other files in the same place (root of hard drive), dynamically using just Javascript?
来源:https://stackoverflow.com/questions/25713218/javascript-to-read-other-files-in-hard-drive