Search for empty folders contains non-empty result

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
appyface
Silver Member
Silver Member
Posts: 228
Joined: 2005 Jun 11, 16:48

Search for empty folders contains non-empty result

Post by appyface »

xplorer2 pro x64 5.4.0.2

I use "find" to get a list last folders in path that is empty. Today a file was included in the results?

Ctrl-F
clear button
uncheck "files"
in additional rules, contents[s] value from 0 to 0
OK

Got my expected list of empty folders, but also an item called "recent items" (came from another machine) that is not empty. I don't think it belongs in the results?

https://ibb.co/hy52Mbh
appyface
Silver Member
Silver Member
Posts: 228
Joined: 2005 Jun 11, 16:48

Re: Search for empty folders contains non-empty result

Post by appyface »

Just ran another search this time using Folder Statistics empty files action.

One of the results that came back is a directory with 650+G in it. FYI.
User avatar
nikos
Site Admin
Site Admin
Posts: 15745
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: Search for empty folders contains non-empty result

Post by nikos »

when you browse the parent of this "recent items" folder, what does its CONTENTS column show?
appyface
Silver Member
Silver Member
Posts: 228
Joined: 2005 Jun 11, 16:48

Re: Search for empty folders contains non-empty result

Post by appyface »

Sorry, in subsequent cleaning pass I forgot to confirm no erroneous results and I deleted that file. This is the only other screenshot I took, in case it is of any help.
https://ibb.co/m8hW201


I do have another non-empty file appearing in a search for last empty folder, it's parent shows the same size. Hopefully it yields a clue:
https://ibb.co/hDfm9xL
https://ibb.co/TvB9vBw
https://ibb.co/BV2SYmF


For the non-empty result from Folder Statistics tool empty folders action, it's parent shows the same size:
https://ibb.co/0QnPq8z
https://ibb.co/XbsnhBS
User avatar
nikos
Site Admin
Site Admin
Posts: 15745
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: Search for empty folders contains non-empty result

Post by nikos »

You say you have the latest version right? Does it say so in HELP > ABOUT menu? (5.402)
I tried a folder statistics on the entire C:\ drive, and it found many empty folders, none of them mistaken

do you have "follow junctions" enabled? (treated as normal folders)
See your ADVANCED OPTIONS (search for "junctions")
appyface
Silver Member
Silver Member
Posts: 228
Joined: 2005 Jun 11, 16:48

Re: Search for empty folders contains non-empty result

Post by appyface »

From help->about: 5.4.0.2 x64 6/13/2023

The advanced option "treat folder junctions as normal folders for recursive commands (e.g. search)" is not marked.
appyface
Silver Member
Silver Member
Posts: 228
Joined: 2005 Jun 11, 16:48

Re: Search for empty folders contains non-empty result

Post by appyface »

Just to add, both non-empty files are involved in very long directory and pathnames. I have posted here in the past my problems processing these with X2. Sometimes X2 handles, other times can't find the path (ex: robust delete). a repeat attempt may or may not work. I don't believe any of these directories and paths exceed the NTFS limits for long pathnames, none that I have spot checked anyway. And windows native cut/copy/delete commands work fine.
Post Reply