* 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)
| 63 | * @return {Array<string>} List of directory paths ordered by path length. |
| 64 | */ |
| 65 | function dirsToCreate(files) { |
| 66 | return uniqueDirs(files).sort(byShortPath); |
| 67 | } |
| 68 | exports.copy = function (files, base, dest) { |
| 69 | return new Promise((resolve, reject) => { |
| 70 | const pairs = []; |
no test coverage detected
searching dependent graphs…