this repo has no description
1(** Recursive directory tree operations. *)
2
3val hardlink :
4 source:Fpath.t -> target:Fpath.t -> (unit, [> Rresult.R.msg ]) result
5(** [hardlink ~source ~target] recursively hardlinks the tree rooted at
6 [source] into [target]. Falls back to {!copy} on EMLINK (too many
7 links). Symlink targets in the source tree are preserved as symlinks. *)
8
9val copy :
10 source:Fpath.t -> target:Fpath.t -> (unit, [> Rresult.R.msg ]) result
11(** [copy ~source ~target] recursively copies the tree rooted at
12 [source] into [target], preserving permissions and modification
13 times. *)
14
15val clense :
16 source:Fpath.t -> target:Fpath.t -> (unit, [> Rresult.R.msg ]) result
17(** [clense ~source ~target] removes files from [target] that are
18 identical to their counterparts in [source] (compared by mtime).
19 Also removes directories in [target] that become empty after
20 removal. Used after overlay builds to extract only new/changed
21 files. *)