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

Function hasTrailingDirectorySeparator

test/fixtures/snapshot/typescript.js:7633–7635  ·  view source on GitHub ↗

* Determines whether a path has a trailing separator (`/` or `\\`).

(path)

Source from the content-addressed store, hash-verified

7631 * Determines whether a path has a trailing separator (`/` or `\\`).
7632 */
7633 function hasTrailingDirectorySeparator(path) {
7634 return path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1));
7635 }
7636 ts.hasTrailingDirectorySeparator = hasTrailingDirectorySeparator;
7637 //// Path Parsing
7638 function isVolumeCharacter(charCode) {

Callers 3

normalizePathFunction · 0.85

Calls 1

isAnyDirectorySeparatorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…