(handle, mode)
| 1862 | } |
| 1863 | |
| 1864 | async function fchmod(handle, mode) { |
| 1865 | if (permission.isEnabled()) { |
| 1866 | throw new ERR_ACCESS_DENIED('fchmod API is disabled when Permission Model is enabled.'); |
| 1867 | } |
| 1868 | mode = parseFileMode(mode, 'mode'); |
| 1869 | return await PromisePrototypeThen( |
| 1870 | binding.fchmod(handle.fd, mode, kUsePromises), |
| 1871 | undefined, |
| 1872 | handleErrorFromBinding, |
| 1873 | ); |
| 1874 | } |
| 1875 | |
| 1876 | async function chmod(path, mode) { |
| 1877 | path = getValidatedPath(path); |
no test coverage detected
searching dependent graphs…