package fileutils

  1. Overview
  2. Docs
exception FileDoesntExist of FilePath.filename
exception Fatal of string

See FileUtil.mli

type interactive =
  1. | Force
  2. | Ask of FilePath.filename -> bool

See FileUtil.mli

type size =
  1. | TB of int64
  2. | GB of int64
  3. | MB of int64
  4. | KB of int64
  5. | B of int64

See FileUtil.mli

type kind =
  1. | Dir
  2. | File
  3. | Dev_char
  4. | Dev_block
  5. | Fifo
  6. | Socket

See FileUtil.mli

type base_permission = {
  1. sticky : bool;
  2. exec : bool;
  3. write : bool;
  4. read : bool;
}

See FileUtil.mli

type permission = {
  1. user : base_permission;
  2. group : base_permission;
  3. other : base_permission;
}

See FileUtil.mli

type stat = {
  1. kind : kind;
  2. permission : permission;
  3. size : size;
  4. owner : int;
  5. group_owner : int;
  6. access_time : float;
  7. modification_time : float;
  8. creation_time : float;
  9. device : int;
  10. inode : int;
}

See FileUtil.mli

type test_file =
  1. | Is_dev_block
  2. | Is_dev_char
  3. | Is_dir
  4. | Exists
  5. | Is_file
  6. | Is_set_group_ID
  7. | Has_sticky_bit
  8. | Is_pipe
  9. | Is_readable
  10. | Is_writeable
  11. | Size_not_null
  12. | Size_bigger_than of size
  13. | Size_smaller_than of size
  14. | Size_equal_to of size
  15. | Size_fuzzy_equal_to of size
  16. | Is_socket
  17. | Has_set_user_ID
  18. | Is_exec
  19. | Is_owned_by_user_ID
  20. | Is_owned_by_group_ID
  21. | Is_newer_than of FilePath.filename
  22. | Is_older_than of FilePath.filename
  23. | Is_newer_than_date of float
  24. | Is_older_than_date of float
  25. | And of test_file * test_file
  26. | Or of test_file * test_file
  27. | Not of test_file
  28. | Match of string
  29. | True
  30. | False
  31. | Has_extension of FilePath.extension
  32. | Has_no_extension
  33. | Is_parent_dir
  34. | Is_current_dir
  35. | Basename_is of FilePath.filename
  36. | Dirname_is of FilePath.filename
  37. | Custom of FilePath.filename -> bool

See FileUtil.mli

type touch_time_t =
  1. | Touch_now
  2. | Touch_file_time of FilePath.filename
  3. | Touch_timestamp of float

See FileUtil.mli

OCaml

Innovation. Community. Security.