mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-19 16:10:53 +00:00
add doc for utils copy_dir
Signed-off-by: tommady <tommady@users.noreply.github.com>
This commit is contained in:
parent
1c622ff52a
commit
1f3257da70
@ -210,6 +210,7 @@ pub fn try_infer_extension(path: &Path) -> Option<Extension> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Copy the src directory into the dst directory recursively
|
||||||
pub fn copy_dir(src: &Path, dst: &Path) -> crate::Result<()> {
|
pub fn copy_dir(src: &Path, dst: &Path) -> crate::Result<()> {
|
||||||
for entry in fs::read_dir(src)? {
|
for entry in fs::read_dir(src)? {
|
||||||
let entry = entry?;
|
let entry = entry?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user