Folder Size

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Kryzalin
Posts: 8
Joined: 24 Oct 2016 11:28

Folder Size

Post by Kryzalin »

I have a column for size to show folder sizes, but sometimes browsing folders can be slow because it decides to check folder sizes for Windows, Users, etc.. This even happens when in a folder on a completely separate drive. Is there any way to stop it from doing this so frequently without turning on caching? I only need to know the folder sizes of the folders in the directories I actually view.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Folder Size

Post by highend »

Mh, use your own scripted custom column?

Code: Select all

    // "|\\" = Exclude calculations for UNC (network) paths!
    $avoid = "C:\Users|C:\Windows|$RECYCLE.BIN|\\";
    $esc   = "(" . regexreplace($avoid, "([\\^$.+()\[{])", "\$1") . ").*";
    if (regexmatches(<cc_item>, $esc)) { return "--"; }
    return formatbytes(foldersize(<cc_item>, "<r>"), "KBR");
One of my scripts helped you out? Please donate via Paypal

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

Re: Folder Size

Post by admin »

Or this tweak:

Code: Select all

v23.70.0341 - 2022-11-18 11:52
    + Show Folder Sizes: Added a tweak to delay the folder size calculation when 
      navigating to a new location. This would delay it by 2 seconds:
        ShowFolderSizeDelayMsecs=2000

Post Reply