File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -854,7 +854,11 @@ fn fill_todo(
854
854
} else {
855
855
path. join ( & s)
856
856
} ;
857
- if ( special && is_dir) || ( !special && fs:: metadata ( & next_path) . is_ok ( ) ) {
857
+ if ( special && is_dir)
858
+ || ( !special
859
+ && ( fs:: metadata ( & next_path) . is_ok ( )
860
+ || fs:: symlink_metadata ( & next_path) . is_ok ( ) ) )
861
+ {
858
862
add ( todo, next_path) ;
859
863
}
860
864
}
@@ -1091,15 +1095,13 @@ mod test {
1091
1095
// check windows absolute paths with host/device components
1092
1096
let root_with_device = current_dir ( )
1093
1097
. ok ( )
1094
- . and_then ( |p| {
1095
- match p. components ( ) . next ( ) . unwrap ( ) {
1096
- Component :: Prefix ( prefix_component) => {
1097
- let path = Path :: new ( prefix_component. as_os_str ( ) ) ;
1098
- path. join ( "*" ) ;
1099
- Some ( path. to_path_buf ( ) )
1100
- }
1101
- _ => panic ! ( "no prefix in this path" ) ,
1098
+ . and_then ( |p| match p. components ( ) . next ( ) . unwrap ( ) {
1099
+ Component :: Prefix ( prefix_component) => {
1100
+ let path = Path :: new ( prefix_component. as_os_str ( ) ) ;
1101
+ path. join ( "*" ) ;
1102
+ Some ( path. to_path_buf ( ) )
1102
1103
}
1104
+ _ => panic ! ( "no prefix in this path" ) ,
1103
1105
} )
1104
1106
. unwrap ( ) ;
1105
1107
// FIXME (#9639): This needs to handle non-utf8 paths
You can’t perform that action at this time.
0 commit comments