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(
855855 } else {
856856 path. join ( & s)
857857 } ;
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+ {
859863 add ( todo, next_path) ;
860864 }
861865 }
@@ -1097,15 +1101,13 @@ mod test {
10971101 // check windows absolute paths with host/device components
10981102 let root_with_device = current_dir ( )
10991103 . 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 ( ) )
11081109 }
1110+ _ => panic ! ( "no prefix in this path" ) ,
11091111 } )
11101112 . unwrap ( ) ;
11111113 // FIXME (#9639): This needs to handle non-utf8 paths
You can’t perform that action at this time.
0 commit comments