Lines Matching defs:dir
358 * Converts path to java.io.File taking care of shell present working dir
456 * Creates a new dir of given name
458 * @param dir name of the new directory
460 function mkdir(dir) {
461 var dir = pathToFile(dir);
462 println(dir.mkdir()? "created" : "can not create dir");
469 * @param dir input path name
471 function mkdirs(dir) {
472 var dir = pathToFile(dir);
473 println(dir.mkdirs()? "created" : "can not create dirs");
575 * @param dir directory from which to list the files. optional, default to pwd
578 function ls(dir, filter) {
579 if (dir) {
580 dir = pathToFile(dir);
582 dir = curDir;
584 if (dir.isDirectory()) {
585 var files = dir.listFiles();
596 printFile(dir);
603 function dir(d, filter) {
635 * @param dir directory to search files
639 function find(dir, pattern, callback) {
640 dir = pathToFile(dir);
642 var files = dir.listFiles();