(p: string, cb: BFSOneArgCallback)
| 319 | } |
| 320 | |
| 321 | public rmdir(p: string, cb: BFSOneArgCallback): void { |
| 322 | const fsInfo = this._getFs(p); |
| 323 | if (this._containsMountPt(p)) { |
| 324 | cb(ApiError.ENOTEMPTY(p)); |
| 325 | } else { |
| 326 | fsInfo.fs.rmdir(fsInfo.path, (err?) => { |
| 327 | cb(err ? this.standardizeError(err, fsInfo.path, p) : null); |
| 328 | }); |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * Returns true if the given path contains a mount point. |
nothing calls this directly
no test coverage detected