W3cubDocs

/Pony

_FileDes

[Source]

Convenience operations on file descriptors.

primitive val _FileDes

Constructors

create

[Source]

new val create()
: _FileDes val^

Returns

Public Functions

chmod

[Source]

Set the FileMode for this fd.

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

Parameters

Returns

chown

[Source]

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

[Source]

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

[Source]

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

[Source]

Set the Capsicum rights on the file descriptor.

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

Parameters

Returns

eq

[Source]

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

Parameters

Returns

ne

[Source]

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

Parameters

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/files-_FileDes