From 528945d67d79f41944cb4ff44e8f606b76d202e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Louren=C3=A7o?= Date: Fri, 23 Sep 2016 15:09:16 +0100 Subject: [PATCH] Copy files with no extension too. --- src/utils/fs.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/fs.rs b/src/utils/fs.rs index 9e268646..fb8ac4e2 100644 --- a/src/utils/fs.rs +++ b/src/utils/fs.rs @@ -147,15 +147,15 @@ pub fn copy_files_except_ext(from: &Path, to: &Path, recursive: bool, ext_blackl if ext_blacklist.contains(&ext.to_str().unwrap()) { continue; } - debug!("[*] creating path for file: {:?}", - &to.join(entry.path().file_name().expect("a file should have a file name..."))); - - info!("[*] Copying file: {:?}\n to {:?}", - entry.path(), - &to.join(entry.path().file_name().expect("a file should have a file name..."))); - try!(fs::copy(entry.path(), - &to.join(entry.path().file_name().expect("a file should have a file name...")))); } + debug!("[*] creating path for file: {:?}", + &to.join(entry.path().file_name().expect("a file should have a file name..."))); + + info!("[*] Copying file: {:?}\n to {:?}", + entry.path(), + &to.join(entry.path().file_name().expect("a file should have a file name..."))); + try!(fs::copy(entry.path(), + &to.join(entry.path().file_name().expect("a file should have a file name...")))); } } Ok(())