MCPcopy Index your code
hub / github.com/nodejs/node / lchmod

Function lchmod

lib/internal/fs/promises.js:1893–1905  ·  view source on GitHub ↗
(path, mode)

Source from the content-addressed store, hash-verified

1891}
1892
1893async 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
1907async function lchown(path, uid, gid) {
1908 const h = vfsState.handlers;

Callers

nothing calls this directly

Calls 4

handleFdCloseFunction · 0.85
lchmodMethod · 0.80
openFunction · 0.70
fchmodFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…