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

Function assertGrantedDirectoryPath

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

Source from the content-addressed store, hash-verified

90}
91
92async function assertGrantedDirectoryPath(filePath: string, grants: AttachmentGrant, cwd: string) {
93 if (await isGrantedDirectoryPath(filePath, grants, cwd)) return
94 throw new Error(`Path is not an attached folder: ${filePath}`)
95}
96
97function createAttachmentFileAccess(grants: AttachmentGrant): AttachmentFileAccess {
98 return {

Callers 1

Calls 1

isGrantedDirectoryPathFunction · 0.85

Tested by

no test coverage detected