Commit e9dbd7f 1 parent 219269a commit e9dbd7f Copy full SHA for e9dbd7f
File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -104,16 +104,19 @@ fn copy_include() {
104
104
create_dir_all ( src) . unwrap ( ) ;
105
105
File :: create ( format ! ( "{}/foo" , src) ) . unwrap ( ) ;
106
106
File :: create ( format ! ( "{}/bar" , src) ) . unwrap ( ) ;
107
+ File :: create ( format ! ( "{}/baz" , src) ) . unwrap ( ) ;
107
108
108
109
CopyBuilder :: new ( src, dst)
109
110
. overwrite ( true )
110
111
. overwrite_if_newer ( true )
111
112
. with_include_filter ( "foo" )
113
+ . with_include_filter ( "baz" )
112
114
. run ( )
113
115
. unwrap ( ) ;
114
116
115
117
assert ! ( Path :: new( & format!( "{}/foo" , dst) ) . is_file( ) ) ;
116
- assert ! ( !Path :: new( & format!( "{}/bar" , dst) ) . is_file( ) ) ;
118
+ assert ! ( !Path :: new( & format!( "{}/bar" , dst) ) . exists( ) ) ;
119
+ assert ! ( Path :: new( & format!( "{}/baz" , dst) ) . exists( ) ) ;
117
120
118
121
// clean up
119
122
std:: fs:: remove_dir_all ( src) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments