MCPcopy 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
48function isDirectory(file) {
49 try {
50 const stats = fs.statSync(file);
51 return stats.isDirectory();
52 } catch (err) {
53 return false;
54 }
55}
56
57function ifExists(file) {
58 return fs.existsSync(file) ? file : null;

Callers 1

resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected