MCPcopy Index your code
hub / github.com/rollup/plugins / createDirectory

Function createDirectory

packages/node-resolve/test/symlinks.js:23–27  ·  view source on GitHub ↗
(pathToDir)

Source from the content-addressed store, hash-verified

21 createDirectory('symlinked/third/node_modules');
22}
23function createDirectory(pathToDir) {
24 if (!fs.existsSync(pathToDir)) {
25 fs.mkdirSync(pathToDir);
26 }
27}
28function linkDirectories() {
29 fs.symlinkSync('../../second', 'symlinked/first/node_modules/second', 'dir');
30 fs.symlinkSync('../../third', 'symlinked/first/node_modules/third', 'dir');

Callers 1

createMissingDirectoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected