Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jamolnng committed Mar 25, 2022
1 parent ddafb98 commit 7bfdf3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/copy.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
use glob::glob;
use std::path::PathBuf;

pub fn copy(input: &PathBuf, output: &PathBuf) -> Result<(), glob::PatternError> {
let files = glob(format!("{}/[!_]*/**/*[!.html][!.md]", input.display()).as_str())?
.chain(glob(format!("{}/*[!.html][!.md]", input.display()).as_str())?);
pub fn copy(
input: &PathBuf, output: &PathBuf,
) -> Result<(), glob::PatternError> {
let files =
glob(format!("{}/[!_]*/**/*[!.html][!.md]", input.display()).as_str())?
.chain(glob(format!("{}/*[!.html][!.md]", input.display()).as_str())?);
for file in files {
match file {
Ok(file) => {
Expand Down

0 comments on commit 7bfdf3f

Please sign in to comment.