MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / createDirectoryIfNotExists

Function createDirectoryIfNotExists

js/botasaurus-desktop-api/src/utils.ts:41–46  ·  view source on GitHub ↗
(passedPath: string)

Source from the content-addressed store, hash-verified

39}
40
41function createDirectoryIfNotExists(passedPath: string): void {
42 const dirPath = relativePath(passedPath, 0);
43 if (!fs.existsSync(dirPath)) {
44 fs.mkdirSync(dirPath, { recursive: true });
45 }
46}
47
48let outputDirectoryCreated = false;
49function createOutputDirectoryIfNotExists(): void {

Callers 1

Calls 1

relativePathFunction · 0.70

Tested by

no test coverage detected