MCPcopy Index your code
hub / github.com/github/docs / existsAndIsDirectory

Function existsAndIsDirectory

script/move-content.js:210–212  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

208}
209
210function existsAndIsDirectory(directory) {
211 return fs.existsSync(directory) && fs.lstatSync(directory).isDirectory()
212}
213
214function splitDirectory(directory) {
215 return [path.dirname(directory), path.basename(directory)]

Callers 1

validateFileInputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected