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

Method existsSync

src/core/file_system.ts:563–570  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

561 });
562 }
563 public existsSync(p: string): boolean {
564 try {
565 this.statSync(p, true);
566 return true;
567 } catch (e) {
568 return false;
569 }
570 }
571 public realpath(p: string, cache: {[path: string]: string}, cb: BFSCallback<string>): void {
572 if (this.supportsLinks()) {
573 // The path could contain symlinks. Split up the path,

Callers 1

realpathSyncMethod · 0.95

Calls 1

statSyncMethod · 0.95

Tested by

no test coverage detected