chown method
Change owner of a regular file or directory.
This functionality is not available on Windows.
await Deno.chown("myFile.txt", 1000, 1002);
Requires allow-write
permission.
Throws Error (not implemented) if executed on Windows.
Implementation
_i2.Future<void> chown(
_i2.Object path, [
_i2.num? uid,
_i2.num? gid,
]) =>
_i3.promiseToFuture(_i3.callMethod(
this,
'chown',
[
path,
uid ?? _i6.undefined,
gid ?? _i6.undefined,
],
));