File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1932,13 +1932,13 @@ impl UCommand {
19321932 fn list_directory_contents ( path : & Path , prefix : & str ) {
19331933 if let Ok ( entries) = fs:: read_dir ( path) {
19341934 for entry in entries. flatten ( ) {
1935- // Recursively list contents if it's a directory
1936- if entry. path ( ) . is_dir ( ) {
1937- Self :: list_directory_contents ( & entry. path ( ) , & format ! ( "{} " , prefix) ) ;
1938- } else {
1939- let path_str = entry. path ( ) . to_string_lossy ( ) . to_string ( ) ;
1940- log_info ( format ! ( "{}File:" , prefix) , & path_str) ;
1941- }
1935+ // Recursively list contents if it's a directory
1936+ if entry. path ( ) . is_dir ( ) {
1937+ Self :: list_directory_contents ( & entry. path ( ) , & format ! ( "{} " , prefix) ) ;
1938+ } else {
1939+ let path_str = entry. path ( ) . to_string_lossy ( ) . to_string ( ) ;
1940+ log_info ( format ! ( "{}File:" , prefix) , & path_str) ;
1941+ }
19421942 }
19431943 }
19441944 }
You can’t perform that action at this time.
0 commit comments