@@ -266,7 +266,9 @@ fn copy_images(from: &str, to: &str) {
266
266
println ! ( "Copying images from {}" , from) ;
267
267
for entry in fs:: read_dir ( from) . expect ( "Can't read directory" ) {
268
268
let path = entry. unwrap ( ) . path ( ) ;
269
- fs:: copy ( & path, format ! ( "{}/{}_Texture2D.png" , to, path. file_stem( ) . unwrap( ) . to_str( ) . unwrap( ) ) ) . expect ( "Unable to copy" ) ;
269
+ let to_path = format ! ( "{}/{}_Texture2D.png" , to, path. file_stem( ) . unwrap( ) . to_str( ) . unwrap( ) ) ;
270
+ println ! ( "Copying Image {} -> {}" , path. to_string_lossy( ) , to_path) ;
271
+ fs:: copy ( & path, to_path) . expect ( "Unable to copy" ) ;
270
272
}
271
273
}
272
274
@@ -278,6 +280,8 @@ fn copy_files(from: &str, to: &str) {
278
280
println ! ( "Copying files from {}" , from) ;
279
281
for entry in fs:: read_dir ( from) . expect ( "Can't read directory" ) {
280
282
let path = entry. unwrap ( ) . path ( ) ;
281
- fs:: copy ( & path, format ! ( "{}/{}" , to, path. file_name( ) . unwrap( ) . to_str( ) . unwrap( ) ) ) . expect ( "Unable to copy" ) ;
283
+ let to_path = format ! ( "{}/{}" , to, path. file_name( ) . unwrap( ) . to_str( ) . unwrap( ) ) ;
284
+ println ! ( "Copying File {} -> {}" , path. to_string_lossy( ) , to_path) ;
285
+ fs:: copy ( & path, to_path) . expect ( "Unable to copy" ) ;
282
286
}
283
287
}
0 commit comments