(path)
| 1849 | } |
| 1850 | |
| 1851 | async function unlink(path) { |
| 1852 | const h = vfsState.handlers; |
| 1853 | if (h !== null) { |
| 1854 | const promise = h.unlink(path); |
| 1855 | if (promise !== undefined) { await promise; return; } |
| 1856 | } |
| 1857 | return await PromisePrototypeThen( |
| 1858 | binding.unlink(getValidatedPath(path), kUsePromises), |
| 1859 | undefined, |
| 1860 | handleErrorFromBinding, |
| 1861 | ); |
| 1862 | } |
| 1863 | |
| 1864 | async function fchmod(handle, mode) { |
| 1865 | if (permission.isEnabled()) { |
no test coverage detected