MCPcopy Index your code
hub / github.com/jvilk/BrowserFS / exists

Method exists

src/core/file_system.ts:558–562  ·  view source on GitHub ↗
(p: string, cb: (exists: boolean) => void)

Source from the content-addressed store, hash-verified

556 throw new ApiError(ErrorCode.ENOTSUP);
557 }
558 public exists(p: string, cb: (exists: boolean) => void): void {
559 this.stat(p, null, function(err) {
560 cb(!err);
561 });
562 }
563 public existsSync(p: string): boolean {
564 try {
565 this.statSync(p, true);

Callers 1

realpathMethod · 0.95

Calls 2

statMethod · 0.95
cbFunction · 0.85

Tested by

no test coverage detected