File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ pub fn find_and_report_envs(
151151 possible_environments. append (
152152 & mut reader
153153 . filter_map ( Result :: ok)
154- . filter ( |d| d. file_type ( ) . is_ok_and ( |f| f . is_dir ( ) ) )
154+ . filter ( |d| d. path ( ) . is_dir ( ) )
155155 . map ( |p| p. path ( ) )
156156 . collect ( ) ,
157157 ) ;
@@ -270,7 +270,7 @@ pub fn find_python_environments_in_workspace_folder_recursive(
270270 if let Ok ( reader) = fs:: read_dir ( workspace_folder. join ( ".pixi" ) . join ( "envs" ) ) {
271271 reader
272272 . filter_map ( Result :: ok)
273- . filter ( |d| d. file_type ( ) . is_ok_and ( |f| f . is_dir ( ) ) )
273+ . filter ( |d| d. path ( ) . is_dir ( ) )
274274 . map ( |p| p. path ( ) )
275275 . for_each ( |p| paths_to_search_first. push ( p) ) ;
276276 }
@@ -295,7 +295,7 @@ pub fn find_python_environments_in_workspace_folder_recursive(
295295 if let Ok ( reader) = fs:: read_dir ( workspace_folder) {
296296 for folder in reader
297297 . filter_map ( Result :: ok)
298- . filter ( |d| d. file_type ( ) . is_ok_and ( |f| f . is_dir ( ) ) )
298+ . filter ( |d| d. path ( ) . is_dir ( ) )
299299 . map ( |p| p. path ( ) )
300300 . filter ( |p| {
301301 // If this directory is a sub directory or is in the environment_directories, then do not search in this directory.
You can’t perform that action at this time.
0 commit comments