MCPcopy Create free account
hub / github.com/walterhiggins/ScriptCraft / fileExists

Function fileExists

src/main/js/lib/require.js:89–95  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

87 BufferedReader = java.io.BufferedReader;
88
89 function fileExists(file) {
90 if (file.isDirectory()) {
91 return readModuleFromDirectory(file);
92 } else {
93 return file;
94 }
95 }
96
97 function _canonize(file) {
98 return '' + file.canonicalPath.replaceAll('\\\\', '/');

Callers 1

resolveModuleToFileFunction · 0.85

Calls 1

readModuleFromDirectoryFunction · 0.85

Tested by

no test coverage detected