package b0
Software construction and deployment kit
Install
Dune Dependency
Authors
Maintainers
Sources
b0-0.0.4.tbz
sha512=665735c8b7a8674201be765bdd676a18d1e38eff35de9d44c3dc15e2bfed2247e8963c9a32ae62d9ca2d6cd1edebd849aac29fdd5a846c14a30feea3edfc0601
doc/b0_b00_kit/B00_rsync/index.html
Module B00_rsync
rsync
support.
val get_cmd :
?search:B00_std.Fpath.t list ->
?cmd:B00_std.Cmd.t ->
unit ->
(B00_std.Cmd.t, string) Stdlib.result
get_cmd ()
looks for rsync
with B00_std.Os.Cmd.get
.
val copy :
?opts:B00_std.Cmd.t ->
?stats:bool ->
delete:bool ->
?src_host:string ->
src:B00_std.Fpath.t ->
?dst_host:string ->
B00_std.Fpath.t ->
(unit, string) Stdlib.result
copy ~src dst
copies the contents of directory src
to dst
with rsync
. As per rsync
semantics, directoryness of src
is important (dst
's one is not):
- If
src
has a trailing directory separator, the contentssrc/*
is copied todst/*
. - If
src
has no trailing directory separator, the contents ofsrc/*
is copied todst/$(basename src)/*
.
src_host
and dst_host
specify the host for source and destination directory (e.g. "myhost:"
). They default to ""
.
If delete
is true
, deletes files at destination that do not exist in src
. If stats
is true
(default) outputs statistics about the transfer. opts
defaults to -azh
, this means transfer in archive mode which preserves symlinks and file attributes and compression is enabled.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>