(path, mode)
| 1891 | } |
| 1892 | |
| 1893 | async function lchmod(path, mode) { |
| 1894 | const h = vfsState.handlers; |
| 1895 | if (h !== null) { |
| 1896 | const promise = h.lchmod(path, mode); |
| 1897 | if (promise !== undefined) { await promise; return; } |
| 1898 | } |
| 1899 | |
| 1900 | if (O_SYMLINK === undefined) |
| 1901 | throw new ERR_METHOD_NOT_IMPLEMENTED('lchmod()'); |
| 1902 | |
| 1903 | const fd = await open(path, O_WRONLY | O_SYMLINK); |
| 1904 | return handleFdClose(fchmod(fd, mode), fd.close); |
| 1905 | } |
| 1906 | |
| 1907 | async function lchown(path, uid, gid) { |
| 1908 | const h = vfsState.handlers; |
nothing calls this directly
no test coverage detected
searching dependent graphs…