`callback`.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_readlink({path} [, {callback}]) *uv.fs_readlink()*
Parameters:
- `path`: `string`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `path`: `string` or `nil`
Equivalent to `readlink(2)`.
Returns (sync version): `string` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_realpath({path} [, {callback}]) *uv.fs_realpath()*
Parameters:
- `path`: `string`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `path`: `string` or `nil`
Equivalent to `realpath(3)`.
Returns (sync version): `string` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_chown({path}, {uid}, {gid} [, {callback}]) *uv.fs_chown()*
Parameters:
- `path`: `string`
- `uid`: `integer`
- `gid`: `integer`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Equivalent to `chown(2)`.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_fchown({fd}, {uid}, {gid} [, {callback}]) *uv.fs_fchown()*
Parameters:
- `fd`: `integer`
- `uid`: `integer`
- `gid`: `integer`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Equivalent to `fchown(2)`.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_lchown({fd}, {uid}, {gid} [, {callback}]) *uv.fs_lchown()*
Parameters:
- `fd`: `integer`
- `uid`: `integer`
- `gid`: `integer`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Equivalent to `lchown(2)`.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_copyfile({path}, {new_path} [, {flags} [, {callback}]]) *uv.fs_copyfile()*
Parameters:
- `path`: `string`
- `new_path`: `string`
- `flags`: `table`, `integer`, or `nil`
- `excl`: `boolean`
- `ficlone`: `boolean`
- `ficlone_force`: `boolean`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: `nil` or `string`
- `success`: `boolean` or `nil`
Copies a file from path to new_path. If the `flags` parameter
is omitted, then the 3rd parameter will be treated as the
`callback`.
Returns (sync version): `boolean` or `fail`
Returns (async version): `uv_fs_t userdata`
uv.fs_opendir({path} [, {callback} [, {entries}]]) *uv.fs_opendir()*
Parameters:
- `path`: `string`
- `callback`: `callable` (async version) or `nil` (sync
version)
- `err`: