Column for folder and file count

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
carter
Posts: 92
Joined: 10 Jul 2019 16:37
Location: w10,64b

Column for folder and file count

Post by carter »

Column for count total no of files and folder in a folder

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

Re: Column for folder and file count

Post by highend »

Use a custom column like this:
1.png
1.png (7.94 KiB) Viewed 837 times
Script:
return foldersize(<cc_item>, "D: <d> / F: <f>");
One of my scripts helped you out? Please donate via Paypal

carter
Posts: 92
Joined: 10 Jul 2019 16:37
Location: w10,64b

Re: Column for folder and file count

Post by carter »

I don't want it to show separately for files and folders i want the total count of files and folders as a number

jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Column for folder and file count

Post by jupe »

Not sure if this does exactly what you want, but if you enable folder sizes:

Tools | Customize List | Show Folder Sizes

And enable this:

Configuration | General | Tree and List | List | Show item count with folder sizes

It shows what you are requesting, but it is recursive totals and can't be easily sorted by, if you want it for only one folder deep you still have the option of using a different custom column, such as return listfolder(<cc_item>, , 32); or if you want it recursive and sort-able you could modify the previously supplied script and combine the values. Looking up the commands you have already been provided in the help file would probably be beneficial.

carter
Posts: 92
Joined: 10 Jul 2019 16:37
Location: w10,64b

Re: Column for folder and file count

Post by carter »

highend, help me with an other script

jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Column for folder and file count

Post by jupe »

return eval(foldersize(<cc_item>, "<d>+<f>"));

carter
Posts: 92
Joined: 10 Jul 2019 16:37
Location: w10,64b

Re: Column for folder and file count

Post by carter »

many thx,now how to apply this column for all tabs at once

jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Column for folder and file count

Post by jupe »

View | Folder View Settings | Define this Folder View as Default

Then depending on your settings etc, you might need to run this on each previously opened tab:

View | Folder View Settings | Restore Folder View

or alternatively just reopen new replacement tabs.

>>> Moved to T&T Q&A

Post Reply