package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.4.tbz
sha512=665735c8b7a8674201be765bdd676a18d1e38eff35de9d44c3dc15e2bfed2247e8963c9a32ae62d9ca2d6cd1edebd849aac29fdd5a846c14a30feea3edfc0601

doc/b0.b00/B000/Op/Copy/index.html

Module Op.Copy

File copy.

File copy

type t

The type for file copies.

val v_op : id:id -> mark:mark -> created:B00_std.Mtime.span -> ?post_exec:(op -> unit) -> ?k:(op -> unit) -> mode:int -> linenum:int option -> src:B00_std.Fpath.t -> B00_std.Fpath.t -> op

v declares a file copy operation, see the corresponding accessors for the semantics of various arguments.

val v : src:B00_std.Fpath.t -> dst:B00_std.Fpath.t -> mode:int -> linenum:int option -> t

v constructs a bare copy operation.

val get : op -> t

get o is the copy operation o. Raises Invalid_argument if o is not a copy.

val src : t -> B00_std.Fpath.t

src c is the file read for the copy.

val dst : t -> B00_std.Fpath.t

dst c is the written by the copy.

val mode : t -> int

mode c is the mode of the file written by the copy.

val linenum : t -> int option

linenum c is the linumber directive to write at the begining of the destination file (if any).

OCaml

Innovation. Community. Security.