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

Method rm

src/models/FileSystem.js:192–198  ·  view source on GitHub ↗

* Delete a file without throwing an error if it is already deleted. * * @param {string} filepath - The path to the file. * @returns {Promise }

(filepath)

Source from the content-addressed store, hash-verified

190 * @returns {Promise<void>}
191 */
192 async rm(filepath) {
193 try {
194 await this._unlink(filepath)
195 } catch (err) {
196 if (err.code !== 'ENOENT') throw err
197 }
198 }
199
200 /**
201 * Delete a directory without throwing an error if it is already deleted.

Callers 15

rmRecursiveFunction · 0.80
applyTreeChangesFunction · 0.80
_checkoutFunction · 0.80
updateWorkingDirFunction · 0.80
_stashDropFunction · 0.80
_stashClearFunction · 0.80
writeMethod · 0.80
deleteRefsMethod · 0.80
test-stash.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected