View on GitHub

xtrmaddons-node-fs-utils

XtrmAddons NodeJs File System Utils

XtrmAddons Node Fs Utils API fr-FR

FsUtils

const FsUtils = require("xtrmaddons-node-fs-utils");

FsUtils.resolve(relPath [, filename, node_env, ext])

Method to solve an absolute file path. It will be solved by default with process.cwd()

FsUtils.file.create(filename [, content, callback])

Method to create file and its full path if not exists.

FsUtils.directory.ensureExistence(dir [, root])

Method to ensure directory existence and create it and all directories needed on the path.

FsUtils.directory.walkSync(dir [, filters, flatten, filelist])

Method to walk through a directory to search for files on it.