Module Filesystem_types.File_kind

module type S = sig ... end
include S
type t =
  1. | Block_device
  2. | Character_device
  3. | Directory
  4. | Fifo
  5. | Regular
  6. | Socket

Represents file kinds returned by stat.

include Ppx_compare_lib.Comparable.S with type t := t
val compare : t -> t -> int
include Ppx_enumerate_lib.Enumerable.S with type t := t
val all : t list
include Ppx_compare_lib.Equal.S with type t := t
val equal : t -> t -> bool
include Ppx_compare_lib.Equal.S__local with type t := t
include Ppx_hash_lib.Hashable.S_any with type t := t
val hash_fold_t : t Ppx_hash_lib.hash_fold
include Ppx_quickcheck_runtime.Quickcheckable.S with type t := t
val quickcheck_generator : t Base_quickcheck.Generator.t
val quickcheck_observer : t Base_quickcheck.Observer.t
val quickcheck_shrinker : t Base_quickcheck.Shrinker.t
val sexp_of_t : t -> Sexplib0.Sexp.t @@ portable

Conversions

val to_unix_file_kind : t -> Core_unix.file_kind @@ portable
val of_unix_file_kind : Core_unix.file_kind -> t @@ portable
val to_async_file_kind : t -> [ `Block | `Char | `Directory | `Fifo | `File | `Link | `Socket ] @@ portable
val of_async_file_kind : [ `Block | `Char | `Directory | `Fifo | `File | `Link | `Socket ] -> t @@ portable