Ende.chownSync
function ยท requires --allow-write
function Ende.chownSync(path: string | URL, uid: number | null, gid: number | null): voidSynchronously change owner of a regular file or directory.
This functionality is not available on Windows.
Ende.chownSync("myFile.txt", 1000, 1002);
Requires allow-write permission.
Throws Error (not implemented) if executed on Windows.
path: string | URLpath to the file
uid: number | nulluser id (UID) of the new owner, or
nullfor no changegid: number | nullgroup id (GID) of the new owner, or
nullfor no change