Getting Folder Size

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Kryzalin
Posts: 14
Joined: 24 Oct 2016 11:28

Getting Folder Size

Post by Kryzalin »

I do not know if this is a bug or not but it drives me crazy.
I see the getting folder size message in the status bar and it triggers frequently at random.
It is getting the sizes of over 10000+ folders and 60000+ files which takes 300-500ms and it does it anywhere from once every 2 seconds to 2-3 times per second even if I do nothing and leave my computer idle. It doesn't seem to be an issue with slowdown or anything but if I'm renaming a folder in the tree the moment it triggers I lose renaming focus.

XY 27.00.0600
Win11

admin
Site Admin
Posts: 66726
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Getting Folder Size

Post by admin »

Turn it off. Depending on where you turned it on, try these:

1) Configuration | General | Tree and List | List | Always show folder sizes

2) Menu Tools | Customize List | Show Folder Sizes

Kryzalin
Posts: 14
Joined: 24 Oct 2016 11:28

Re: Getting Folder Size

Post by Kryzalin »

Unfortunate, I was hoping to have folder size functionality but without the unnecessary constant scanning my entire drive a couple times a second even when idle.

EDIT:
I disabled both of those options and the problem still occurs.
Video of Issue

ImageImage

admin
Site Admin
Posts: 66726
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Getting Folder Size

Post by admin »

Right-click the Size column header and ensure "Show Folder Sizes" is unticked.

Kryzalin
Posts: 14
Joined: 24 Oct 2016 11:28

Re: Getting Folder Size

Post by Kryzalin »

It wasn't enabled.

Image

admin
Site Admin
Posts: 66726
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Getting Folder Size

Post by admin »

It must be enabled in one of those places, or you press Shift+F5 to actively start it, or it is auto-enabled via Folder View Settings, or you trigger it by some Custom Event Action.

Kryzalin
Posts: 14
Joined: 24 Oct 2016 11:28

Re: Getting Folder Size

Post by Kryzalin »

I figured out the cause...

Auto-Refresh was enabled and Suspend Auto-Refresh was disabled.
The refresh loop was very specifically being triggered on my AppData/Local folder. My assumption is that constant changes here, possibly in Temp was causing a refresh loop. Either disabling the Auto-Refresh or enabling Suspend Auto-Refresh "fixes" the issue. I liked having folder size data though and it sucks that this feature is a bit overzealous.

admin
Site Admin
Posts: 66726
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Getting Folder Size

Post by admin »

So Show Folder Sizes was enabled.

You can exclude specific folders from Show Folder Sizes using this tweak:

Code: Select all

ShowFolderSizesExclude=...

Kryzalin
Posts: 14
Joined: 24 Oct 2016 11:28

Re: Getting Folder Size

Post by Kryzalin »

I didn't realize show folder sizes was Auto-Refresh. I thought that was so I don't have to press F5 every time I change the files within a directory.

Also I saved my config, then added the following to my XYplorer.ini and finally restarted without saving to not overwrite the .ini. I then reenabled Auto-Refresh and it is still scanning that directory over and over.

[General]
ShowFolderSizesExclude=C:\Users\Kryzalin\AppData\Local

Kryzalin
Posts: 14
Joined: 24 Oct 2016 11:28

Re: Getting Folder Size

Post by Kryzalin »

I created a portable XYplorer instance and manually configured it to match my installed version. When I navigate to AppData/Local with folder size and auto refresh turned on it repeated scans folder sizes like twice per second. But if I navigate to another directory it stops scanning. Even if I have another tab with AppData Local. As long as I'm not focused on the directory actively it doesnt scan, Strangely my installed version of XY will scan that directory regardless of focus.

Maybe this is a downside is backing up my config and restoring for nearly 10 years. 10 years of possible orphaned settings or who knows what.

admin
Site Admin
Posts: 66726
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Getting Folder Size

Post by admin »

Check this out for how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

Post Reply