package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.memo/B0_zero/Op/Copy/index.html

Module Op.CopySource

File copy.

File copy

Sourcetype t

The type for file copies.

Sourceval make_op : id:id -> mark:mark -> created:B0_std.Mtime.Span.t -> ?post_exec:(op -> unit) -> ?k:(op -> unit) -> mode:int -> linenum:int option -> B0_std.Fpath.t -> dst:B0_std.Fpath.t -> op

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

Sourceval make : src:B0_std.Fpath.t -> dst:B0_std.Fpath.t -> mode:int -> linenum:int option -> t

make constructs a bare copy operation.

Sourceval get : op -> t

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

Sourceval src : t -> B0_std.Fpath.t

src c is the file read for the copy.

Sourceval dst : t -> B0_std.Fpath.t

dst c is the written by the copy.

Sourceval mode : t -> int

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

Sourceval linenum : t -> int option

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

On This Page
  1. File copy