source: imaps-frontend/node_modules/@nodelib/fs.scandir/out/providers/common.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 419 bytes
RevLine 
[d565449]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.joinPathSegments = void 0;
4function joinPathSegments(a, b, separator) {
5 /**
6 * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
7 */
8 if (a.endsWith(separator)) {
9 return a + b;
10 }
11 return a + separator + b;
12}
13exports.joinPathSegments = joinPathSegments;
Note: See TracBrowser for help on using the repository browser.