MCPcopy Create free account
hub / github.com/observablehq/framework / canWriteRecursive

Function canWriteRecursive

src/create.ts:181–189  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

179}
180
181function canWriteRecursive(path: string): boolean {
182 while (true) {
183 const dir = dirname(path);
184 if (canWrite(dir)) return true;
185 if (dir === path) break;
186 path = dir;
187 }
188 return false;
189}
190
191async function recursiveCopyTemplate(
192 inputRoot: string,

Callers 1

validateRootPathFunction · 0.85

Calls 1

canWriteFunction · 0.85

Tested by

no test coverage detected