MCPcopy Index your code
hub / github.com/nodejs/node / isFileSystemCaseSensitive

Function isFileSystemCaseSensitive

test/fixtures/snapshot/typescript.js:7186–7193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7184 : new Buffer(input, encoding);
7185 }
7186 function isFileSystemCaseSensitive() {
7187 // win32\win64 are case insensitive platforms
7188 if (platform === "win32" || platform === "win64") {
7189 return false;
7190 }
7191 // If this file exists under a different case, we must be case-insensitve.
7192 return !fileExists(swapCase(__filename));
7193 }
7194 /** Convert all lowercase chars to uppercase, and vice-versa */
7195 function swapCase(s) {
7196 return s.replace(/\w/g, function (ch) {

Callers 1

getNodeSystemFunction · 0.85

Calls 2

swapCaseFunction · 0.85
fileExistsFunction · 0.70

Tested by

no test coverage detected