PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Show folder size in explorer

Open GooGuiz opened this issue 7 years ago • 38 comments

Summary of the new feature/enhancement

Add the sum of the size of all files contained in the size file zone of the file explorer.

Proposed technical implementation details (optional)

GooGuiz avatar Sep 11 '19 17:09 GooGuiz

Might take forever on large folders (think about selecting C: on the left pane: Now the PowerToy has to go through Program Files, Windows, and all other huge folders. Suggested alternatives:

  1. Have a toolbar checkbox/switch in the toolbar you can activate to get the folder sizes (it will have to be deactivated when you change folders, or maybe start blinking when it encounters huge folders)
  2. Create a tool that shows folder sizes and can be launched from Explorer (my personal favorite is Steffen Gerlach's Scanner, and it even has some kind of Explorer integration)

AssafTzurEl avatar Sep 12 '19 08:09 AssafTzurEl

This worked fine with a Windows XP shell extension called Folder Size on my 266MHz PII MMX 18 years ago, and I would very much like to see it return, it was one of the reasons it took me ages to switch to Windows 7, I even skipped Vista for it. Those who find this feature to be missing from Windows Explorer already use alternatives, 3rd party software like WinDirStat or Folder Size (different from the aforementioned shell extension), and are quite aware of how much time it takes to calculate all this from a root folder, so dismissing the suggestion just because it would take too much time for someone who wouldn't want to bother enabling the feature the first place because of that is just not logical.

Asagrim avatar Sep 13 '19 22:09 Asagrim

I'll second this one. Had been using "Folder Size" way back when, on my AMD Athlon XP (or was it the K6?) and I would very much like to see that functionality return.

skagon avatar Sep 26 '19 00:09 skagon

Agree, this would be cool. also would help me track down where i left those pesky VMs when i need to clear disk space

crutkas avatar Dec 17 '19 18:12 crutkas

I'm not sure how they do it, but at my workplace (it's where you can make the greatest purchase), we have a special internal tool that does that. It's a separate file explorer actually, but it has that feature. It says "calculating size" when it doesn't have the results yet and it's pretty quick, much quicker than when checking properties, at least it feels like it. There's ways to download the tool online, I think. I can't provide files though since they're closed source and I'd lose my job.

imjuniper avatar Apr 01 '20 21:04 imjuniper

I would like this also - I still install foldersize now, but it would be better not to rely on too many 3rd party apps. Its easier to trust the code from a reliable source.

malham88 avatar Apr 25 '20 15:04 malham88

Well, if something like this can work in MacOS, why shouldn't it work in Windows...?! :-) More seriously, I guess some kind of low-priority process could take care of the calculation without perturbing user activity. Moreover, this is already done for folders in the recycle bin, although in that case it might be done as a static one-off calculation.

scala65 avatar May 19 '20 09:05 scala65

Large folders (high in the root dir) take quite a lot of time to calculate "by hand", but isn't this information already available somewhere in the MFT? Oh wait, when you open the Properties window of a folder, it explorer also calculates the size on request.

Maybe, we can start with information that Windows Search has? Or use the "desktop.ini" file in basically every folder, to store its size?

Jay-o-Way avatar Aug 21 '20 12:08 Jay-o-Way

Hold on, Explorer already has the ability to show size info in the hover tooltip of (some, not all) folders. There must be a way to tap into that.

Jay-o-Way avatar Sep 05 '20 18:09 Jay-o-Way

Any updates on this?

fourteen-1 avatar Dec 17 '21 10:12 fourteen-1

Large folders (high in the root dir) take quite a lot of time to calculate "by hand", but isn't this information already available somewhere in the MFT? Oh wait, when you open the Properties window of a folder, it explorer also calculates the size on request.

Maybe, we can start with information that Windows Search has? Or use the "desktop.ini" file in basically every folder, to store its size?

WizTree seems to be using the MFT to scan and it takes like 5 seconds to scan a full drive.

imjuniper avatar Apr 19 '22 21:04 imjuniper

FYI the app Files does have this :)

Jay-o-Way avatar Jul 26 '23 16:07 Jay-o-Way

FYI the app Files does have this :)

The screenshot shows no size information alongside folders in the Size column, neither does the description mention any such functionality, and last but not least, it's a separate software, not an Explorer shell extension.

I don't want to replace Explorer, because that never worked out for me, even things like XYplorer had deal breaker issues, instead I want the default file manager of Windows to make sense. I should not have to launch different software to do different things to the same folders. It's like expecting me to launch a media viewer to be able to see my thumbnails instead of expecting it to be basic file manager functionality.

And since the feature request was opened, not only did the entire PC case industry in general ditch hard drives, to the point that even large towers only have two token 3.5" bays with 7+ 2.5 slots for SSDs, Windows 12 will have a hard requirement of having to be installed to an SSD, so the performance hit on trying to calculate folder sizes is 100% moot.

There is ZERO reason by today to not implement such a feature INTO Explorer directly, except if you are unable to do so because Microsoft removed the ability to write explorer shell extensions that could seamlessly embed information into it.

Asagrim avatar Jul 26 '23 16:07 Asagrim

The screenshot shows no size information alongside folders in the Size column, neither does the description mention any such functionality

Probably because it's off by default. image

so the performance hit on trying to calculate folder sizes is 100% moot.

Well, there's a bit of load for the CPU though. Not a problem for high end pc's, but you never know on a low end device... (that's why it's optional in Files)

Besides... Just trying to help :)

Jay-o-Way avatar Jul 26 '23 16:07 Jay-o-Way

I second this idea. I would like the implementation like in Total Commander. Folders sizes are not scanned every time. But you have a command to scan the sizes of all selected folders. Without it searching for big folders to clean in app data is a pain!

anton-hystrix avatar Sep 14 '23 20:09 anton-hystrix

+1 It's high-time this feature should be considered.

Welding-Torch avatar Sep 28 '23 15:09 Welding-Torch

I use https://foldersize.sourceforge.net/ regularly. However, given that it loads in a side pop-up it is definitely not great. Having folder size integrated in Explorer would definitely be great. The change should be part of "Explorer add-ons". Using PowerToys Peek on a folder already gives size instantaneously so this add-on could tap into that capability.

namakeingo avatar Nov 30 '23 15:11 namakeingo

Yeah I used https://foldersize.sourceforge.net/ wayy back when I was on Windows XP. Can't believe it's been so long, and it still isn't implemented by default in File Explorer.

Welding-Torch avatar Dec 01 '23 05:12 Welding-Torch

Mind-boggling this is not implemented by Microsoft themselves. Min specs for Win 11 is a 4-thread CPU, so "performance" concerns of 2006 are moot. As @Jay-o-Way mentioned, info is already tabulated- viewable in the hover tooltip. Any way to extract that data & utilize in a Sort field?

RespectIsEverything avatar Jan 07 '24 21:01 RespectIsEverything

Mind-boggling this is not implemented by Microsoft themselves. Min specs for Win 11 is a 4-thread CPU, so "performance" concerns of 2006 are moot. As @Jay-o-Way mentioned, info is already tabulated- viewable in the hover tooltip. Any way to extract that data & utilize in a Sort field?

What's really mind-boggling is that this already worked with a Windows XP explorer shell extension called "folder size" on my Pentium II MMX Compaq Deskpro (96 MB RAM, 266 MHz, 6.7 GB HDD), and even though I've had to wait for large folders to be calculated, it was a far cry away from being a nuisance to have to wait for.

2+ decades later we have M.2 SSD drives with random4k sequential reading capabilities surpassing the total reading speed of the UDMA devices then. If I am using a standalone application, it finishes scanning my half-terabyte PCIe Gen 3 M.2 SSD in eight seconds. There is zero reason for Windows not to do this by default in the size column!

Asagrim avatar Jan 07 '24 21:01 Asagrim