MCPcopy Index your code
hub / github.com/developit/microbundle / isDir

Function isDir

src/utils.js:8–12  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

6export const stat = fs.stat;
7
8export function isDir(name) {
9 return stat(name)
10 .then(stats => stats.isDirectory())
11 .catch(() => false);
12}
13
14export function isFile(name) {
15 return stat(name)

Callers 3

getInputFunction · 0.90
getOutputFunction · 0.90
getEntriesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…