* Synchronously removes a file or symbolic link. * @param {string | Buffer | URL} path * @returns {void}
(path)
| 2326 | * @returns {void} |
| 2327 | */ |
| 2328 | function unlinkSync(path) { |
| 2329 | const h = vfsState.handlers; |
| 2330 | if (h !== null) { |
| 2331 | const result = h.unlinkSync(path); |
| 2332 | if (result !== undefined) return; |
| 2333 | } |
| 2334 | binding.unlink(getValidatedPath(path)); |
| 2335 | } |
| 2336 | |
| 2337 | /** |
| 2338 | * Sets the permissions on the file. |
no test coverage detected
searching dependent graphs…