MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / getDirectories

Function getDirectories

updateCompletionTable.js:45–48  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

43const PROBLEMS_OBJ = createProblemsObj(PROBLEM_SITE_DATA);
44
45const getDirectories = (source) =>
46 readdirSync(source, { withFileTypes: true })
47 .filter((dirent) => dirent.isDirectory())
48 .map((dirent) => dirent.name);
49
50function* walkSync(dir) {
51 const files = fs.readdirSync(dir, { withFileTypes: true });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected