Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mikro-orm/mikro-orm
/ pathExists
Function
pathExists
packages/core/src/utils/fs-utils.ts:53–59 ·
view source on GitHub ↗
(path: string)
Source
from the content-addressed store, hash-verified
51
},
52
53
pathExists(path: string): boolean {
54
if
(/[*?[\]]/.test(path)) {
55
return
globSync(path).length > 0;
56
}
57
58
return
existsSync(path);
59
},
60
61
ensureDir(path: string): void {
62
if
(!existsSync(path)) {
Callers
nothing calls this directly
Calls
2
globSync
Function · 0.85
test
Method · 0.65
Tested by
no test coverage detected