package rashell

  1. Overview
  2. Docs
type file_kind = Unix.file_kind =
  1. | S_REG
  2. | S_DIR
  3. | S_CHR
  4. | S_BLK
  5. | S_LNK
  6. | S_FIFO
  7. | S_SOCK
type file_perm = Unix.file_perm
type stats = Unix.stats = {
  1. st_dev : int;
  2. st_ino : int;
  3. st_kind : file_kind;
  4. st_perm : file_perm;
  5. st_uid : int;
  6. st_gid : int;
  7. st_rdev : int;
  8. st_size : int;
  9. st_atime : float;
  10. st_mtime : float;
  11. st_ctime : float;
}
type predicate =
  1. | Prune
  2. | Has_kind of file_kind
  3. | Has_suffix of string
  4. | Is_owned_by_user of int
  5. | Is_owned_by_group of int
  6. | Is_newer_than of string
  7. | Has_exact_permission of int
  8. | Has_at_least_permission of int
  9. | Name of string
  10. | And of predicate list
  11. | Or of predicate list
  12. | Not of predicate
val find : ?workdir:string -> ?env:string array -> ?follow:bool -> ?depthfirst:bool -> ?onefilesystem:bool -> predicate -> string list -> string Lwt_stream.t
val test : ?workdir:string -> ?env:string array -> ?follow:bool -> predicate -> string -> bool Lwt.t
val cp : ?workdir:string -> ?env:string array -> ?follow:bool -> ?force:bool -> ?recursive:bool -> string list -> string -> string Lwt_stream.t
val rm : ?workdir:string -> ?env:string array -> ?force:bool -> ?recursive:bool -> string list -> string Lwt_stream.t
val mv : ?workdir:string -> ?env:string array -> ?force:bool -> string list -> string -> string Lwt_stream.t
val ln : ?workdir:string -> ?env:string array -> ?force:bool -> ?symbolic:bool -> string list -> string -> string Lwt_stream.t
val sed : ?workdir:string -> ?env:string array -> ?echo:bool -> string -> string list -> string Lwt_stream.t
val sed_inplace : ?workdir:string -> ?env:string array -> ?suffix:string -> string -> string list -> unit Lwt.t
val sed_filter : ?workdir:string -> ?env:string array -> ?echo:bool -> string -> string Lwt_stream.t -> string Lwt_stream.t
val awk : ?workdir:string -> ?env:string array -> ?fs:string -> ?bindings:(string * string) list -> string -> string list -> string Lwt_stream.t
val awk_filter : ?workdir:string -> ?env:string array -> ?fs:string -> ?bindings:(string * string) list -> string -> string Lwt_stream.t -> string Lwt_stream.t
type free_disk_space = {
  1. df_device : string;
  2. df_blocks : int;
  3. df_used : int;
  4. df_free : int;
  5. df_capacity : float;
  6. df_mounted_on : string;
}
val df : string list -> free_disk_space list Lwt.t
val du : string list -> (string * int) list Lwt.t
OCaml

Innovation. Community. Security.