I am using below code to select a directory and read each file from that directory
<input type="file"onchange="checkFiles(this.files)" webkitdirectory directory multiple>
In below code I am able to read each files in directory and it properties like name, size and type. But did not found any way to check if files are readable, writable or executable.
function checkFiles(files) {
for (var i = 0; i < files.length; i++) {
//check for readable writable or executable files
}
}