chmodSync method

void chmodSync(
  1. Object path,
  2. num mode
)

Synchronously changes the permission of a specific file/directory of specified path. Ignores the process's umask.

Deno.chmodSync("/path/to/file", 0o666);

For a full description, see {@linkcode Deno.chmod}.

NOTE: This API currently throws on Windows

Requires allow-write permission.

Implementation

void chmodSync(
  _i2.Object path,
  _i2.num mode,
) {
  _i3.callMethod(
    this,
    'chmodSync',
    [
      path,
      mode,
    ],
  );
}