* Removes a file or directory asynchronously. * @param {string} filePath The path to remove * @param {object|Function} [options] Options or callback * @param {Function} [callback] Callback (err)
(filePath, options, callback)
| 861 | * @param {Function} [callback] Callback (err) |
| 862 | */ |
| 863 | rm(filePath, options, callback) { |
| 864 | if (typeof options === 'function') { |
| 865 | callback = options; |
| 866 | options = undefined; |
| 867 | } |
| 868 | try { |
| 869 | this.rmSync(filePath, options); |
| 870 | process.nextTick(callback, null); |
| 871 | } catch (err) { |
| 872 | process.nextTick(callback, err); |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | /** |
| 877 | * Gets file stats from a file descriptor asynchronously. |
no test coverage detected