Method System.chown()
- Method
chown
voidchown(stringpath,intuid,intgid,void|intsymlink)- Description
Sets the owner and group of the specified path.
If
symlinkis set andpathrefers to a symlink, then the owner and group for the symlink are set. Symlinks are dereferenced otherwise.- Note
Throws errors on failure.
This function is not available on all platforms. On some platforms the
symlinkflag isn't supported. In that case, the function does nothing ifpathis a symlink.