MCPcopy
hub / github.com/jvilk/BrowserFS / _containsMountPt

Method _containsMountPt

src/backend/MountableFileSystem.ts:335–344  ·  view source on GitHub ↗

* Returns true if the given path contains a mount point.

(p: string)

Source from the content-addressed store, hash-verified

333 * Returns true if the given path contains a mount point.
334 */
335 private _containsMountPt(p: string): boolean {
336 const mountPoints = this.mountList, len = mountPoints.length;
337 for (let i = 0; i < len; i++) {
338 const pt = mountPoints[i];
339 if (pt.length >= p.length && pt.slice(0, p.length) === p) {
340 return true;
341 }
342 }
343 return false;
344 }
345}
346
347/**

Callers 2

rmdirSyncMethod · 0.95
rmdirMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected