MCPcopy Create free account
hub / github.com/cloudle/ruui / getDirectories

Function getDirectories

cli-local/init.js:9–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7const isDirectory = source => fs.lstatSync(source).isDirectory();
8
9const getDirectories = source => fs.readdirSync(source)
10 .map(name => path.join(source, name))
11 .filter(isDirectory);
12
13function init(root, argsOrName, opts) {
14 const template = opts['base'] || 'default',

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected