FileInfo

This contains file system metadata for a path. The times are in the same format as Time.now(), i.e. seconds and nanoseconds since the epoch.

The INODE is UNIX specific. It will be zero on Windows.

The UID and GID are UNIX-style user and group IDs. These will be zero on Windows. The change_time will actually be the file creation time on Windows.

A symlink will report information about itself, other than the size which will be the size of the target. A broken symlink will report as much as it can and will set the broken flag.

class val FileInfo

Constructors

create

new val create(
  from: FilePath val)
: FileInfo val^ ?

Parameters

Returns


_descriptor

new val _descriptor(
  fd: I32 val,
  path: FilePath val)
: FileInfo val^ ?

Parameters

Returns


_relative

new val _relative(
  fd: I32 val,
  path: FilePath val,
  from: String val)
: FileInfo val^ ?

Parameters

Returns


Public fields



  • let hard_links: U32 val

  • let device: U64 val

  • let inode: U64 val

  • let uid: U32 val

  • let gid: U32 val


  • let access_time: (I64 val , I64 val)

  • let modified_time: (I64 val , I64 val)

  • let change_time: (I64 val , I64 val)

  • let file: Bool val

  • let directory: Bool val

  • let pipe: Bool val

  • let symlink: Bool val

  • let broken: Bool val