MCPcopy
hub / github.com/nashsu/llm_wiki / assertAbsoluteFsPath

Function assertAbsoluteFsPath

src/commands/fs.ts:144–148  ·  view source on GitHub ↗
(operation: string, path: string)

Source from the content-addressed store, hash-verified

142}
143
144function assertAbsoluteFsPath(operation: string, path: string): void {
145 if (!isAbsolutePath(path)) {
146 throw new Error(`${operation} requires an absolute path: ${path}`)
147 }
148}
149
150/** Mirror of `commands::fs::FileBase64` (Rust side). */
151export interface FileBase64 {

Callers 4

writeFileFunction · 0.85
writeFileBase64Function · 0.85
writeFileAtomicFunction · 0.85
createDirectoryFunction · 0.85

Calls 1

isAbsolutePathFunction · 0.90

Tested by

no test coverage detected