hi
I deleted a bunch of files in Windows - but thousands of .DS_Store files remain in empty folders
I have a program to delete empty folder and your program also has this capability
But how can I find and delete folders that only contain .DS_Store?
That is, folders with only .DS_Store inside them and no other files
how can i find all (.DS_Store) files that they remain alone in a folder in my hard drive?
delete find all (.DS_Store) files that they remain alone in a folder
Re: delete find all (.DS_Store) files that they remain alone in a folder
In Everything 1.5 Alpha:
will find directories (I think it is) with no subdirectories & with only 1 file within.
Though with that, any "name" search that you might use (like, .DS_Store) is relegated to directory names only, not file names.
But maybe (probably) there is some other set of Search Functions to get what you're after?
Try,. [Nope, that's not it either.]
This might have it,.
(Note that "changes" are not seen, you'll have to, View | Refresh, to see changes.)
child-file-count:1 child-folder-count:0
will find directories (I think it is) with no subdirectories & with only 1 file within.
Though with that, any "name" search that you might use (like, .DS_Store) is relegated to directory names only, not file names.
But maybe (probably) there is some other set of Search Functions to get what you're after?
Try,
wfn:child:.DS_Store sibling-folder-count:0
This might have it,
wfn:child:.DS_Store descendant-count:1
(Note that "changes" are not seen, you'll have to, View | Refresh, to see changes.)
Re: delete find all (.DS_Store) files that they remain alone in a folder
as i cheack in a small HDD , the last one work perfect
thank youuuuuu .
Code: Select all
wfn:child:.DS_Store descendant-count:1