MCPcopy
hub / github.com/GitbookIO/gitbook / areIdenticalPaths

Function areIdenticalPaths

lib/utils/location.js:124–126  ·  view source on GitHub ↗

* Compare two paths, return true if they are identical * ('README.md', './README.md') -> true * * @param {String} p1: first path * @param {String} p2: second path * @return {Boolean}

(p1, p2)

Source from the content-addressed store, hash-verified

122 * @return {Boolean}
123 */
124function areIdenticalPaths(p1, p2) {
125 return normalize(p1) === normalize(p2);
126}
127
128module.exports = {
129 areIdenticalPaths: areIdenticalPaths,

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…