We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 219269a commit e9dbd7fCopy full SHA for e9dbd7f
src/tests.rs
@@ -104,16 +104,19 @@ fn copy_include() {
104
create_dir_all(src).unwrap();
105
File::create(format!("{}/foo", src)).unwrap();
106
File::create(format!("{}/bar", src)).unwrap();
107
+ File::create(format!("{}/baz", src)).unwrap();
108
109
CopyBuilder::new(src, dst)
110
.overwrite(true)
111
.overwrite_if_newer(true)
112
.with_include_filter("foo")
113
+ .with_include_filter("baz")
114
.run()
115
.unwrap();
116
117
assert!(Path::new(&format!("{}/foo", dst)).is_file());
- assert!(!Path::new(&format!("{}/bar", dst)).is_file());
118
+ assert!(!Path::new(&format!("{}/bar", dst)).exists());
119
+ assert!(Path::new(&format!("{}/baz", dst)).exists());
120
121
// clean up
122
std::fs::remove_dir_all(src).unwrap();
0 commit comments