MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / checkPaths

Method checkPaths

packages/cli/src/commands/DebugCommand.ts:91–102  ·  view source on GitHub ↗
(paths: string[], failedColor: 'red' | 'yellow', baseDir?: string)

Source from the content-addressed store, hash-verified

89 }
90
91 private static async checkPaths(paths: string[], failedColor: 'red' | 'yellow', baseDir?: string): Promise<void> {
92 for (let path of paths) {
93 path = fs.absolutePath(path, baseDir);
94 path = fs.normalizePath(path);
95
96 if (fs.pathExists(path)) {
97 CLIHelper.dump(` - ${path} (${colors.green('found')})`);
98 } else {
99 CLIHelper.dump(` - ${path} (${colors[failedColor]('not found')})`);
100 }
101 }
102 }
103}

Callers 1

handlerMethod · 0.80

Calls 4

absolutePathMethod · 0.80
normalizePathMethod · 0.80
pathExistsMethod · 0.80
dumpMethod · 0.80

Tested by

no test coverage detected