(p: string)
| 306 | } |
| 307 | |
| 308 | public rmdirSync(p: string): void { |
| 309 | const fsInfo = this._getFs(p); |
| 310 | if (this._containsMountPt(p)) { |
| 311 | throw ApiError.ENOTEMPTY(p); |
| 312 | } else { |
| 313 | try { |
| 314 | fsInfo.fs.rmdirSync(fsInfo.path); |
| 315 | } catch (e) { |
| 316 | throw this.standardizeError(e, fsInfo.path, p); |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | public rmdir(p: string, cb: BFSOneArgCallback): void { |
| 322 | const fsInfo = this._getFs(p); |
nothing calls this directly
no test coverage detected