* Delete a file without throwing an error if it is already deleted. * * @param {string} filepath - The path to the file. * @returns {Promise }
(filepath)
| 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. |
no outgoing calls
no test coverage detected