JSFileApi
Jump to navigation
Jump to search
var dir = new File("/path"); // /path on unix var subdir = new File(dir, "name.txt") // /path/name.txt on unix
//readdir throws an exception if it isn't a directory for each [file,type] in file.readdir() { // here type is a directory|file. i = file.stat() // i = { size: 1, lastModified:...} }