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

Method rmdirSync

src/backend/MountableFileSystem.ts:308–319  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 5

_getFsMethod · 0.95
_containsMountPtMethod · 0.95
standardizeErrorMethod · 0.95
ENOTEMPTYMethod · 0.80
rmdirSyncMethod · 0.65

Tested by

no test coverage detected