Commit dffed09 1 parent 85cd116 commit dffed09 Copy full SHA for dffed09
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,9 @@ fn map_entry(
528
528
let path = entry. into_path ( ) ;
529
529
let open = Some ( OpenFile ( path. clone ( ) ) ) ;
530
530
let path = path. strip_prefix ( base_path) . unwrap ( ) ;
531
- let path = UnixPath :: new ( path. as_os_str ( ) . as_encoded_bytes ( ) ) . to_path_buf ( ) ;
531
+ let path = WindowsPath :: new ( path. as_os_str ( ) . as_encoded_bytes ( ) )
532
+ . to_path_buf ( )
533
+ . with_encoding :: < UnixEncoding > ( ) ;
532
534
Ok ( ReadSourceEntry { path, node, open } )
533
535
}
534
536
@@ -630,6 +632,8 @@ fn map_entry(
630
632
with_atime : bool ,
631
633
ignore_devid : bool ,
632
634
) -> IgnoreResult < ReadSourceEntry < OpenFile > > {
635
+ use typed_path:: { UnixEncoding , WindowsPath } ;
636
+
633
637
let name = entry. file_name ( ) . as_encoded_bytes ( ) ;
634
638
let m = entry
635
639
. metadata ( )
You can’t perform that action at this time.
0 commit comments