doc: Document changes to `copy-recursively'.

* doc/guix.texi: Document new key `select?' in `copy-recursively'.

Change-Id: I4b14ae5a1b40e0939456604f75597b5596b76f83
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Romain GARBAGE 2024-01-23 09:42:41 +01:00 committed by Ludovic Courtès
parent 3f32305680
commit f5d75acd0d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -10628,12 +10628,18 @@ Make @var{file} writable for its owner.
@deffn {Procedure} copy-recursively source destination @ @deffn {Procedure} copy-recursively source destination @
[#:log (current-output-port)] [#:follow-symlinks? #f] @ [#:log (current-output-port)] [#:follow-symlinks? #f] @
[#:copy-file copy-file] [#:keep-mtime? #f] [#:keep-permissions? #t] [#:copy-file copy-file] [#:keep-mtime? #f] [#:keep-permissions? #t]
[#:select? (const #t)]
Copy @var{source} directory to @var{destination}. Follow symlinks if Copy @var{source} directory to @var{destination}. Follow symlinks if
@var{follow-symlinks?} is true; otherwise, just preserve them. Call @var{follow-symlinks?} is true; otherwise, just preserve them. Call
@var{copy-file} to copy regular files. When @var{keep-mtime?} is true, @var{copy-file} to copy regular files. Call @var{select?}, taking two
keep the modification time of the files in @var{source} on those of arguments, @var{file} and @var{stat}, for each entry in @var{source},
@var{destination}. When @var{keep-permissions?} is true, preserve file where @var{file} is the entry's absolute file name and @var{stat} is the
permissions. Write verbose output to the @var{log} port. result of @code{lstat} (or @code{stat} if @var{follow-symlinks?} is
true); exclude entries for which @var{select?} does not return true.
When @var{keep-mtime?} is true, keep the modification time of the files
in @var{source} on those of @var{destination}.
When @var{keep-permissions?} is true, preserve file permissions. Write
verbose output to the @var{log} port.
@end deffn @end deffn
@deffn {Procedure} delete-file-recursively dir [#:follow-mounts? #f] @deffn {Procedure} delete-file-recursively dir [#:follow-mounts? #f]