Page 1 of 1

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

Posted: 19 Jul 2025 15:51
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 ---

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

Posted: 19 Jul 2025 15:59
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 751 times

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

Posted: 19 Jul 2025 16:03
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>);

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

Posted: 19 Jul 2025 16:10
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.