List of utility methods to do Directory Copy
fs_copytree(source, dest, options)var FS = require("fs"); var PATH = require("path"); function defaults(args, defs) { var ret = {}; for (var i in defs) ret[i] = args.hasOwnProperty(i) ? args[i] : defs[i]; return ret; }; function shallow_copy(src, dest) { ... | |
fs_ensure_directory(dir, callback)var FS = require("fs"); var PATH = require("path"); function defaults(args, defs) { var ret = {}; for (var i in defs) ret[i] = args.hasOwnProperty(i) ? args[i] : defs[i]; return ret; }; function shallow_copy(src, dest) { ... |