chownSync method

void chownSync(
  1. Object path, [
  2. num? uid,
  3. num? gid
])

Synchronously change owner of a regular file or directory.

This functionality is not available on Windows.

Deno.chownSync("myFile.txt", 1000, 1002);

Requires allow-write permission.

Throws Error (not implemented) if executed on Windows.

Implementation

void chownSync(
  _i2.Object path, [
  _i2.num? uid,
  _i2.num? gid,
]) {
  _i3.callMethod(
    this,
    'chownSync',
    [
      path,
      uid ?? _i6.undefined,
      gid ?? _i6.undefined,
    ],
  );
}