`chmod(1)`)
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `permission`: `boolean` or `nil`
Equivalent to `access(2)` on Unix. Windows uses
`GetFileAttributesW()`. Access `mode` can be an integer or a
string containing `"R"` or `"W"` or `"X"`. Returns `true` or
`false` indicating access permission.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_chmod({path}, {mode} [, {callback}]) *uv.fs_chmod()*
Parameters:
- `path`: `string`
- `mode`: `integer` (octal representation of `chmod(1)` mode,
e.g. `tonumber('644', 8)`)
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Equivalent to `chmod(2)`.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_fchmod({fd}, {mode} [, {callback}]) *uv.fs_fchmod()*
Parameters:
- `fd`: `integer`
- `mode`: `integer`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Equivalent to `fchmod(2)`.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_utime({path} [, {atime}, {mtime}, {callback}]) *uv.fs_utime()*
Parameters:
- `path`: `string`
- `atime`: `number` or `string` or `nil`
- `mtime`: `number` or `string` or `nil`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Equivalent to `utime(2)`.
See |luv-constants| for supported FS Modification Time
constants.
Passing `"now"` or `uv.constants.FS_UTIME_NOW` as the atime or
mtime sets the timestamp to the current time.
Passing `nil`, `"omit"`, or `uv.constants.FS_UTIME_OMIT` as
the atime or mtime leaves the timestamp untouched.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_futime({fd} [, {atime}, {mtime}, {callback}]) *uv.fs_futime()*
Parameters:
- `fd`: `integer`
- `atime`: `number` or `string` or `nil`
- `mtime`: `number` or `string` or `nil`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Equivalent to `futimes(3)`.
See |luv-constants| for supported FS Modification Time
constants.
Passing `"now"` or `uv.constants.FS_UTIME_NOW` as the atime or
mtime sets the timestamp to the current time.
Passing `nil`, `"omit"`, or `uv.constants.FS_UTIME_OMIT` as
the atime or mtime leaves the timestamp untouched.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_lutime({path} [, {atime}, {mtime}, {callback}]) *uv.fs_lutime()*
Parameters:
- `path`: `string`
- `atime`: `number` or `string` or `nil`