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

Function removeTrailingDirectorySeparator

test/fixtures/snapshot/typescript.js:8015–8020  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

8013 }
8014 ts.toPath = toPath;
8015 function removeTrailingDirectorySeparator(path) {
8016 if (hasTrailingDirectorySeparator(path)) {
8017 return path.substr(0, path.length - 1);
8018 }
8019 return path;
8020 }
8021 ts.removeTrailingDirectorySeparator = removeTrailingDirectorySeparator;
8022 function ensureTrailingDirectorySeparator(path) {
8023 if (!hasTrailingDirectorySeparator(path)) {

Callers 3

getDirectoryPathFunction · 0.85
getBaseFileNameFunction · 0.85
getAnyExtensionFromPathFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…