MCPcopy Index your code
hub / github.com/isomorphic-git/isomorphic-git / rmdir

Method rmdir

src/models/FileSystem.js:207–217  ·  view source on GitHub ↗

* Delete a directory without throwing an error if it is already deleted. * * @param {string} filepath - The path to the directory. * @param {Object} [opts] - Options for deleting the directory. * @returns {Promise }

(filepath, opts)

Source from the content-addressed store, hash-verified

205 * @returns {Promise<void>}
206 */
207 async rmdir(filepath, opts) {
208 try {
209 if (opts && opts.recursive) {
210 await this._rm(filepath, opts)
211 } else {
212 await this._rmdir(filepath)
213 }
214 } catch (err) {
215 if (err.code !== 'ENOENT') throw err
216 }
217 }
218
219 /**
220 * Read a directory without throwing an error is the directory doesn't exist

Callers 9

abortMergeFunction · 0.95
rmRecursiveFunction · 0.80
applyTreeChangesFunction · 0.80
_checkoutFunction · 0.80
_cloneFunction · 0.80
test-abortMerge.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected