Address PR review comments
This commit is contained in:
parent
bd14d0910a
commit
c2686a817a
|
@ -36,5 +36,4 @@ not specified it will default to the value of the `build.build-dir` key in
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
***Note:*** *The build command copies all files (excluding files with `.md` extension) from the source directory
|
***Note:*** *The build command copies all files (excluding files with `.md` extension) from the source directory
|
||||||
into the build directory. If the build directory is under the source directory it is not copied as this would
|
into the build directory.*
|
||||||
result in a recursive copy until your disk is full.*
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ pub fn copy_files_except_ext(
|
||||||
let entry = entry?;
|
let entry = entry?;
|
||||||
let metadata = entry.metadata()?;
|
let metadata = entry.metadata()?;
|
||||||
|
|
||||||
// If the entry is a dir and the recursive option is enabled , call itself
|
// If the entry is a dir and the recursive option is enabled, call itself
|
||||||
if metadata.is_dir() && recursive {
|
if metadata.is_dir() && recursive {
|
||||||
if entry.path() == to.to_path_buf() {
|
if entry.path() == to.to_path_buf() {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue