mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
Address PR review comments
This commit is contained in:
parent
bd14d0910a
commit
c2686a817a
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
into the build directory. If the build directory is under the source directory it is not copied as this would
|
||||
result in a recursive copy until your disk is full.*
|
||||
into the build directory.*
|
||||
|
|
|
@ -115,7 +115,7 @@ pub fn copy_files_except_ext(
|
|||
let entry = entry?;
|
||||
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 entry.path() == to.to_path_buf() {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue