_FileDes

Convenience operations on file descriptors.

primitive val _FileDes

Constructors

create

new val create()
: _FileDes val^

Returns


Public Functions

chmod

Set the FileMode for this fd.

fun box chmod(
  fd: I32 val,
  path: FilePath val,
  mode: FileMode box)
: Bool val

Parameters

Returns


chown

Set the owner and group for this file. Does nothing on Windows.

fun box chown(
  fd: I32 val,
  path: FilePath val,
  uid: U32 val,
  gid: U32 val)
: Bool val

Parameters

Returns


touch

Set the last access and modification times of the file to now.

fun box touch(
  fd: I32 val,
  path: FilePath val)
: Bool val

Parameters

Returns


set_time

Set the last access and modification times of the file to the given values.

fun box set_time(
  fd: I32 val,
  path: FilePath val,
  atime: (I64 val , I64 val),
  mtime: (I64 val , I64 val))
: Bool val

Parameters

Returns


set_rights

Set the Capsicum rights on the file descriptor.

fun box set_rights(
  fd: I32 val,
  path: FilePath val,
  writeable: Bool val = seq)
: None val ?

Parameters

Returns


eq

fun box eq(
  that: _FileDes val)
: Bool val

Parameters

Returns


ne

fun box ne(
  that: _FileDes val)
: Bool val

Parameters

Returns