Having a column that shows total number of items in a folder

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
unabatedshagie
Posts: 33
Joined: 07 Mar 2018 12:10

Having a column that shows total number of items in a folder

Post by unabatedshagie »

I tried adding the column with the property file count but it doesn't seem to show the number of files in a folder, it just shows ---

phred
Posts: 549
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Windows 10 at 100% from Boston USA

Re: Having a column that shows total number of items in a folder

Post by phred »

Config > General > Tree and List > List > Show item count with folder sizes
2025-07-19_09-57-47.jpg
2025-07-19_09-57-47.jpg (8.88 KiB) Viewed 750 times

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

Re: Having a column that shows total number of items in a folder

Post by highend »

Or in its own scripted custom column:
E.g.:

Code: Select all

$items = foldersize(<cc_item>, "<f>|<d>", 1);
    return gettoken($items, 1, "|") + gettoken($items, 2, "|");
Or e.g. non-recursive:

Code: Select all

return property("#ItemCount", <cc_item>);
One of my scripts helped you out? Please donate via Paypal

unabatedshagie
Posts: 33
Joined: 07 Mar 2018 12:10

Re: Having a column that shows total number of items in a folder

Post by unabatedshagie »

highend wrote: 19 Jul 2025 16:03 Or in its own scripted custom column:
E.g.:

Code: Select all

$items = foldersize(<cc_item>, "<f>|<d>", 1);
    $total = gettoken($items, 1, "|") + gettoken($items, 2, "|");
    return $total
Switch 0 to 1 if these values should be recursive
Perfect, thanks.

Post Reply