MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / isGrantedDirectoryPath

Function isGrantedDirectoryPath

desktop/runtime/attachment-file-tools.ts:82–85  ·  view source on GitHub ↗
(filePath: string, grants: AttachmentGrant, cwd: string)

Source from the content-addressed store, hash-verified

80}
81
82async function isGrantedDirectoryPath(filePath: string, grants: AttachmentGrant, cwd: string) {
83 const resolved = await tryRealpath(await existingPathVariant(resolveToolPath(filePath, cwd)))
84 return grants.directories.has(resolved)
85}
86
87async function assertGrantedPath(filePath: string, grants: AttachmentGrant, cwd: string) {
88 if (await isGrantedPath(filePath, grants, cwd)) return

Callers 1

Calls 3

tryRealpathFunction · 0.85
existingPathVariantFunction · 0.85
resolveToolPathFunction · 0.85

Tested by

no test coverage detected