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 @@ -855,7 +855,11 @@ fn fill_todo(
855
855
} else {
856
856
path. join ( & s)
857
857
} ;
858
- if ( special && is_dir) || ( !special && fs:: metadata ( & next_path) . is_ok ( ) ) {
858
+ if ( special && is_dir)
859
+ || ( !special
860
+ && ( fs:: metadata ( & next_path) . is_ok ( )
861
+ || fs:: symlink_metadata ( & next_path) . is_ok ( ) ) )
862
+ {
859
863
add ( todo, next_path) ;
860
864
}
861
865
}
@@ -1097,15 +1101,13 @@ mod test {
1097
1101
// check windows absolute paths with host/device components
1098
1102
let root_with_device = current_dir ( )
1099
1103
. ok ( )
1100
- . and_then ( |p| {
1101
- match p. components ( ) . next ( ) . unwrap ( ) {
1102
- Component :: Prefix ( prefix_component) => {
1103
- let path = Path :: new ( prefix_component. as_os_str ( ) ) ;
1104
- path. join ( "*" ) ;
1105
- Some ( path. to_path_buf ( ) )
1106
- }
1107
- _ => panic ! ( "no prefix in this path" ) ,
1104
+ . and_then ( |p| match p. components ( ) . next ( ) . unwrap ( ) {
1105
+ Component :: Prefix ( prefix_component) => {
1106
+ let path = Path :: new ( prefix_component. as_os_str ( ) ) ;
1107
+ path. join ( "*" ) ;
1108
+ Some ( path. to_path_buf ( ) )
1108
1109
}
1110
+ _ => panic ! ( "no prefix in this path" ) ,
1109
1111
} )
1110
1112
. unwrap ( ) ;
1111
1113
// FIXME (#9639): This needs to handle non-utf8 paths
You can’t perform that action at this time.
0 commit comments