Having a column that shows total number of items in a folder
-
unabatedshagie
- Posts: 33
- Joined: 07 Mar 2018 12:10
Having a column that shows total number of items in a folder
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
Config > General > Tree and List > List > Show item count with folder sizes
Re: Having a column that shows total number of items in a folder
Or in its own scripted custom column:
E.g.:
Or e.g. non-recursive:
E.g.:
Code: Select all
$items = foldersize(<cc_item>, "<f>|<d>", 1);
return gettoken($items, 1, "|") + gettoken($items, 2, "|");
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
Perfect, thanks.highend wrote: ↑19 Jul 2025 16:03 Or in its own scripted custom column:
E.g.:Switch 0 to 1 if these values should be recursiveCode: Select all
$items = foldersize(<cc_item>, "<f>|<d>", 1); $total = gettoken($items, 1, "|") + gettoken($items, 2, "|"); return $total
XYplorer Beta Club