Listing all items vertically may not be very practical, and especially when you just want to browse directories or just files, an idea to focus on a single sector might be to add two icons to collapse each group.
Idea reflected in the following comparative image, of course it is an option made by configuration, not an imposition
You can take advantage of the horizontal space to inform the number of folders or files in total and their size, sorry for my bad eng and quality of the images were made in a simple image editor