MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / isDir

Function isDir

src/project/paths.ts:8–8  ·  view source on GitHub ↗
(_path: string)

Source from the content-addressed store, hash-verified

6export const isSolFile = (_path: string) => getExtension(_path) === '.sol';
7
8export const isDir = (_path: string) => !Boolean(getExtension(_path));
9
10export const getDir = (_path: string) => isDir(_path) ? _path : path.parse(_path).dir;
11

Callers 2

getInputFilesFunction · 0.90
getDirFunction · 0.85

Calls 1

getExtensionFunction · 0.85

Tested by

no test coverage detected