MCPcopy Index your code
hub / github.com/Waishnav/devspace / maybeAddDirectory

Function maybeAddDirectory

scripts/dev-server.mjs:88–95  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

86 }
87
88 function maybeAddDirectory(path) {
89 try {
90 const stats = statSync(path);
91 if (stats.isDirectory()) addDirectory(path);
92 } catch {
93 // The file may have been deleted between the watch event and stat call.
94 }
95 }
96
97 addDirectory(root);
98 return watchers;

Callers 1

addDirectoryFunction · 0.85

Calls 1

addDirectoryFunction · 0.85

Tested by

no test coverage detected