MCPcopy Create free account
hub / github.com/andylow92/file-system-like-github / createDirectory

Function createDirectory

apps/api/src/storage/fileRepository.ts:99–102  ·  view source on GitHub ↗
(logicalPath: string)

Source from the content-addressed store, hash-verified

97 }
98
99 async function createDirectory(logicalPath: string): Promise<void> {
100 const absolutePath = pathResolver.resolvePath(logicalPath);
101 await fs.mkdir(absolutePath, { recursive: true });
102 }
103
104 async function createMarkdownFile(logicalPath: string, content = ''): Promise<void> {
105 const absolutePath = pathResolver.resolveMarkdownPath(logicalPath);

Callers

nothing calls this directly

Calls 1

resolvePathMethod · 0.80

Tested by

no test coverage detected