package fileutils

  1. Overview
  2. Docs
exception CpError of string
exception CpSkip
type cp_error = [
  1. | `CannotChmodDstDir of FilePath.filename * exn
  2. | `CannotCopyDir of FilePath.filename
  3. | `CannotCopyFilesToFile of FilePath.filename list * FilePath.filename
  4. | `CannotCreateDir of FilePath.filename * exn
  5. | `CannotListSrcDir of FilePath.filename * exn
  6. | `CannotOpenDstFile of FilePath.filename * exn
  7. | `CannotOpenSrcFile of FilePath.filename * exn
  8. | `CannotRemoveDstFile of FilePath.filename * exn
  9. | `DstDirNotDir of FilePath.filename
  10. | `ErrorRead of FilePath.filename * exn
  11. | `ErrorWrite of FilePath.filename * exn
  12. | `Exc of exn
  13. | `NoSourceFile of FilePath.filename
  14. | `PartialWrite of FilePath.filename * int * int
  15. | `SameFile of FilePath.filename * FilePath.filename
  16. | `UnhandledType of FilePath.filename * FileUtilTypes.kind
]
val same_file : FileUtilTypes.stat -> FileUtilTypes.stat -> bool
val cp : ?follow:FileUtilTypes.action_link -> ?force:FileUtilTypes.interactive -> ?recurse:bool -> ?preserve:bool -> ?error: (string -> [ `CannotChmodDstDir of FilePath.filename * exn | `CannotCopyDir of FilePath.filename | `CannotCopyFilesToFile of FilePath.filename list * FilePath.filename | `CannotCreateDir of FilePath.filename * exn | `CannotListSrcDir of FilePath.filename * exn | `CannotOpenDstFile of FilePath.filename * exn | `CannotOpenSrcFile of FilePath.filename * exn | `CannotRemoveDstFile of FilePath.filename * exn | `DstDirNotDir of FilePath.filename | `ErrorRead of FilePath.filename * exn | `ErrorWrite of FilePath.filename * exn | `Exc of exn | `NoSourceFile of FilePath.filename | `PartialWrite of FilePath.filename * int * int | `SameFile of FilePath.filename * FilePath.filename | `UnhandledType of FilePath.filename * FileUtilTypes.kind ] -> 'a) -> FilePath.filename list -> FilePath.filename -> unit
OCaml

Innovation. Community. Security.