Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ionic-team/ionic-framework
/ isDirectory
Function
isDirectory
core/scripts/treeshaking.js:48–55 ·
view source on GitHub ↗
(file)
Source
from the content-addressed store, hash-verified
46
}
47
48
function
isDirectory(file) {
49
try {
50
const
stats = fs.statSync(file);
51
return
stats.isDirectory();
52
} catch (err) {
53
return
false;
54
}
55
}
56
57
function
ifExists(file) {
58
return
fs.existsSync(file) ? file : null;
Callers
1
resolve
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected