package fileutils

  1. Overview
  2. Docs
type who = [
  1. | `User
  2. | `Group
  3. | `Other
  4. | `All
]
type wholist = [
  1. | who
  2. | `List of who list
]
type permcopy = [
  1. | `User
  2. | `Group
  3. | `Other
]
type perm = [
  1. | `Read
  2. | `Write
  3. | `Exec
  4. | `ExecX
  5. | `Sticky
  6. | `StickyO
]
type permlist = [
  1. | perm
  2. | `List of perm list
]
type actionarg = [
  1. | permlist
  2. | permcopy
]
type action = [
  1. | `Set of actionarg
  2. | `Add of actionarg
  3. | `Remove of actionarg
]
type actionlist = [
  1. | action
  2. | `List of action list
]
type clause = [
  1. | `User of actionlist
  2. | `Group of actionlist
  3. | `Other of actionlist
  4. | `All of actionlist
  5. | `None of actionlist
]
type t = clause list
val all_masks : ([> `Group | `Other | `User ] * [> `Exec | `Read | `Sticky | `StickyO | `Write ] * int) list
val mask : who -> perm -> int
val of_int : int -> [> `Group of [> `Set of [> `List of [> `Exec | `Read | `Sticky | `StickyO | `Write ] list ] ] | `Other of [> `Set of [> `List of [> `Exec | `Read | `Sticky | `StickyO | `Write ] list ] ] | `User of [> `Set of [> `List of [> `Exec | `Read | `Sticky | `StickyO | `Write ] list ] ] ] list
val to_string : [< `All of [< `Add of actionarg | `List of [< `Add of [< `Exec | `ExecX | `Group | `List of perm list | `Other | `Read | `Sticky | `StickyO | `User | `Write ] as 'b | `Remove of 'b | `Set of 'b ] list | `Remove of actionarg | `Set of actionarg ] as 'a | `Group of 'a | `None of 'a | `Other of 'a | `User of 'a ] list -> string
val apply : is_dir:bool -> umask:int -> int -> t -> int
OCaml

Innovation. Community. Security.