* Synchronously sets the owner of the symbolic link. * @param {string | Buffer | URL} path * @param {number} uid * @param {number} gid * @returns {void}
(path, uid, gid)
| 2496 | * @returns {void} |
| 2497 | */ |
| 2498 | function lchownSync(path, uid, gid) { |
| 2499 | path = getValidatedPath(path); |
| 2500 | validateInteger(uid, 'uid', -1, kMaxUserId); |
| 2501 | validateInteger(gid, 'gid', -1, kMaxUserId); |
| 2502 | |
| 2503 | const h = vfsState.handlers; |
| 2504 | if (h !== null) { |
| 2505 | const result = h.lchownSync(path, uid, gid); |
| 2506 | if (result !== undefined) return; |
| 2507 | } |
| 2508 | |
| 2509 | binding.lchown(path, uid, gid); |
| 2510 | } |
| 2511 | |
| 2512 | /** |
| 2513 | * Sets the owner of the file. |
nothing calls this directly
no test coverage detected
searching dependent graphs…