ffd
v0.0.1
Published
find a file among directories
Downloads
4
Maintainers
Readme
ffd — find a file among directories
Usage
const ffd = require("ffd");
// filename, [ path, ... ], callback(file)
ffd("passwd", ["/usr/local","/etc","/tmp"], function(file){
if (file === null) {
console.error("This file does not exist in any of the paths");
} else {
console.log("The file was found in %s", file);
}
})