package eio

  1. Overview
  2. Docs

Portable file stats.

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

Kind of file from st_mode. *

type t = {
  1. dev : Stdlib.Int64.t;
  2. ino : Stdlib.Int64.t;
  3. kind : kind;
  4. perm : Unix_perm.t;
  5. uid : Stdlib.Int64.t;
  6. gid : Stdlib.Int64.t;
  7. rdev : Stdlib.Int64.t;
  8. size : Optint.Int63.t;
  9. atime : float;
  10. mtime : float;
  11. ctime : float;
}

Like stat(2).

OCaml

Innovation. Community. Security.