(p: string, cb: (exists: boolean) => void)
| 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); |