Having a column that shows total number of items in a folder
Posted: 19 Jul 2025 15:51
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 ---
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
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>);
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