MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isDir

Function isDir

src/utils/helpers.js:221–223  ·  view source on GitHub ↗

* Checks whether given type is directory or not * @param {'dir'|'directory'|'folder'} type * @returns {Boolean}

(type)

Source from the content-addressed store, hash-verified

219 * @returns {Boolean}
220 */
221 isDir(type) {
222 return /^(dir|directory|folder)$/.test(type);
223 },
224 /**
225 * Checks whether given type is file or not
226 * @param {'file'|'link'} type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected