layout: default
public String _isdir(String args[]) {
boolean isdir = true;
// If no dirs provided, return false
if (args.length < 2) {
isdir = false;
}
for (int i = 1; i < args.length; i++) {
File f = new File(args[i]).getAbsoluteFile();
isdir &= f.isDirectory();
}
return isdir ? "true" : "false";
}