package eio

  1. Overview
  2. Docs
Effect-based direct-style IO API for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

eio-1.4.tbz
sha256=ba11ad486f492130dbb486f2b3bdc4905643f10016806ddf86e9a34e4346aaa5
sha512=57ef2c137ccdc26d8029e636b6a4ee92da7c6b2f35954946bd56ca595d6947a8ec42f6f83f8552f73d6719e6ce2314cae2e2fad1686a387522935e6f90e9a8d9

doc/eio/Eio/File/Stat/index.html

Module File.StatSource

Portable file stats.

Sourcetype kind = [
  1. | `Unknown
  2. | `Fifo
  3. | `Character_special
  4. | `Directory
  5. | `Block_device
  6. | `Regular_file
  7. | `Socket
]

Kind of file from st_mode. *

Sourceval pp_kind : kind Fmt.t

Pretty printer for kind.

Sourcetype t = {
  1. dev : Int64.t;
    (*

    Device containing the filesystem where the file resides.

    *)
  2. ino : Int64.t;
    (*

    Inode number.

    *)
  3. kind : kind;
    (*

    File type.

    *)
  4. perm : Unix_perm.t;
    (*

    Permissions (mode).

    *)
  5. uid : Int64.t;
    (*

    User ID of owner.

    *)
  6. gid : Int64.t;
    (*

    Group ID of owner.

    *)
  7. rdev : Int64.t;
    (*

    Device's ID (if this is a device).

    *)
  8. size : Optint.Int63.t;
    (*

    Total size in bytes.

    *)
  9. blksize : Int64.t;
    (*

    Preferred block size for efficient filesystem I/O.

    *)
  10. blocks : Int64.t;
    (*

    Number of 512-byte blocks allocated (disk usage is blocks * 512).

    *)
  11. atime : float;
    (*

    Last access time.

    *)
  12. mtime : float;
    (*

    Last modification time.

    *)
  13. ctime : float;
    (*

    Creation time.

    *)
}

Like stat(2).

Sourceval pp : t Fmt.t

Pretty printer for t.