Finding Empty Folders

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

antroy
New Member
Posts: 4
Joined: 2004 Nov 24, 11:56

Finding Empty Folders

Post by antroy »

Hello all,

I have been using xplorer2  pro since it came out (and 2xexplorer before that) but am only recently using some of its more powerful scrap based features.

One thing I am particularly interested in doing is finding and removing empty folders. I found some info in the PDF manual, which was to do a search for all folders with the additional constraint that size should be 0. I tried this, but the search returned all folders, presumably since their size (in bytes) is equal to 0.

Does anyone know a good way of finding empty folders?
Ant...
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

does the manual say that? It is wrong!
i can't think of a way to find all empty folders
what you could do perhaps is run Alt+D on your root to get all folder data, then export this info to a text editor and search for text like
"Sub-Folders=0, Files=0"

of course then you'd need to go back to x2 and delete them but d-clicking from folder data window will help you somewhat
User avatar
JRz
Gold Member
Gold Member
Posts: 560
Joined: 2003 Jun 10, 23:19
Location: NL

Post by JRz »

nikos wrote:does the manual say that? It is wrong!
i can't think of a way to find all empty folders
what you could do perhaps is run Alt+D on your root to get all folder data, then export this info to a text editor and search for text like
"Sub-Folders=0, Files=0"

of course then you'd need to go back to x2 and delete them but d-clicking from folder data window will help you somewhat
Nikos, you should perhaps read the manual too ;)

On page 93 of manual version 1.1.0.0-1 there's a good description of how to get this done the most easy way (you almost got it right though :) )
Dumb questions are the ones that are never asked :turn:
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

for this kind of thing we need a new stock column that will show the # of items within each folder. Then it can be used as a search criterion :idea:
narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan »

Nice idea! But why not provide a one-shot command to delete empty folders?

BTW ALT+D would be a completely manual search-and-destroy operation, and quite laborious.

Antroy, You are referring to an old version! Please follow the NEW UM's instructions carefully: put the scrap pane in details mode and  then press CTRL+D; otherwise the CTRL+D command's results get reset.

In any case you should not be seeing 00 for all items in the size column. But it is possible that all the folders you have selected are empty, and therefore you are getting this result (?)

Do let us know the results!
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

But why not provide a one-shot command to delete empty folders
love it or loathe it, x2 has been written with the mentality of providing the most generic tools not necessarily fixed to a job. So instead of providing ready-made gardens it provides shovels so that people can synthesise their own gardens to taste!

btw now i remember we had that discussion about how to detect & destroy empty folders before. I had exactly the same computer-friendly proposition back then and you went for your resource-sapping ctrl+D alternative in the end ;)
narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan »

Yes! And happily, the CTRL+D command only saps the PC resources, but not the user's! ;)
User avatar
JRz
Gold Member
Gold Member
Posts: 560
Joined: 2003 Jun 10, 23:19
Location: NL

Post by JRz »

nikos wrote:
[...]love it or loathe it, x2 has been written with the mentality of providing the most generic tools not necessarily fixed to a job. So instead of providing ready-made gardens it provides shovels so that people can synthesise their own gardens to taste!
[...]
Good point. And I quite agree with this!
Dumb questions are the ones that are never asked :turn: