MCPcopy
hub / github.com/tschaub/gh-pages / dirsToCreate

Function dirsToCreate

lib/util.js:65–67  ·  view source on GitHub ↗

* Generate a list of directories to create given a list of file paths. * @param {Array } files List of file paths. * @return {Array } List of directory paths ordered by path length.

(files)

Source from the content-addressed store, hash-verified

63 * @return {Array<string>} List of directory paths ordered by path length.
64 */
65function dirsToCreate(files) {
66 return uniqueDirs(files).sort(byShortPath);
67}
68exports.copy = function (files, base, dest) {
69 return new Promise((resolve, reject) => {
70 const pairs = [];

Callers 1

util.jsFile · 0.85

Calls 1

uniqueDirsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…