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 ---
-
phred
- Posts: 638
- Joined: 26 Dec 2021 02:10
- Location: XY 64bit on Win10 at 100% from Boston USA
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
You do not have the required permissions to view the files attached to this post.
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
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