Hi,
The file manager that I normally use has a 'ghost empty folders' facility, which is very useful. As the name suggests, it gives all empty folders a faded look. I can't find this facility anywhere in XYPlorer, so can I put it forward as a request?
Thanks.
Ghost Empty Folders facility.
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Ghost Empty Folders facility.
In the tree? Or in the list? Or both?
General answer: There is a reason why XYplorer is the fastest of all file managers: Things like this take time.
General answer: There is a reason why XYplorer is the fastest of all file managers: Things like this take time.
FAQ | XY News RSS | XY X
-
Goliath79
- Posts: 1
- Joined: 22 Dec 2014 20:23
Re: Ghost Empty Folders facility.
Fastest indeed, but in my case and I'm guessing in XYYMan case has well, having the option would make our work faster. Saving 5 minutes + to check all empty folders is worth waiting a couple of seconds to have the program do it (I'm guessing I don't really know how much time it would take).General answer: There is a reason why XYplorer is the fastest of all file managers: Things like this take time.
Just my take on this subject, I too would appreciate the option.
Keep up the good work.
-
highend
- Posts: 14954
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Ghost Empty Folders facility.
This was the first thing I requested (three years ago)
when I came from SpeedCommander. No chance to do it, Don? Even as a tweak for those who don't care if they loose 5ms in execution speed? 
One of my scripts helped you out? Please donate via Paypal
-
binocular222
- Posts: 1423
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Ghost Empty Folders facility.
Maybe adding switch in Custom File Icon?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Ghost Empty Folders facility.
Not exactly what you're after but you could use color filters to highlight empty folders in the list. Unfortunately, it cannot be done in the tree nor does it work with custom file icons.
Previously you could use size:0 to highlight empty items, but to color folders the costly Calculate Folder Sizes option needed to be enabled. With the recently added #empty special property it is much easier:
I imagine Custom File Icons will eventually gain support for the attribute/property selectors which should fully satisfy this wish, but maybe this helps in the meantime. 
Previously you could use size:0 to highlight empty items, but to color folders the costly Calculate Folder Sizes option needed to be enabled. With the recently added #empty special property it is much easier:
Code: Select all
"Empty Files" prop:#empty:1
"Empty Folders" prop:#empty:2
"Empty Files & Folders" prop:#empty:1-2
"Non-Empty Files" prop:#empty:5
"Non-Empty Folders" prop:#empty:6
"Non-Empty Files & Folders" prop:#empty:5-6To see the attached files, you need to log into the forum.
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Ghost Empty Folders facility.
A bit off topic from the original post, but thanks TheQwerty for enlightening me on the use of multiple returns on property #Empty. I have a few situations in scripts one being the Thumbnail Maintenance script that I have to determine if a folder contains sub folders but no files. Unfortunately after some experimenting, it doesn't appear that I can use combinations of the property #Empty to determine that. I have to resort to using listfolder as in the example below. This works fine, though Don mentioned that he'd be able to determine this with a change to property #Empty much faster that using listfolder. Unless I'm missing something? I mentioned in this thread http://www.xyplorer.com/xyfc/viewtopic. ... ty#p115550 if at some point Don might expand the #Empty to allow us to determine if the folder has sub folder with no files or if the other way around, has files but no sub folders. He seems agreeable to that, but I'll followup up only after he's got the Portable Devices behind him.
Thanks,
Ken
Code: Select all
if((property("#Empty", "$cur_folder") == "6") AND (! listfolder($cur_folder,,"1") == "1")) {end confirm("The current folder contains no files but does contain folders. Do you wish to proceed to rebuild the sub-folders?",,"1","4") == "0", "Aborting thumbnail rebuild...goodbye!";}Thanks,
Ken
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Ghost Empty Folders facility.
You're missing the FolderSize SC.klownboy wrote:to determine if a folder contains sub folders but no files. Unfortunately after some experimenting, it doesn't appear that I can use combinations of the property #Empty to determine that. I have to resort to using listfolder as in the example below. ... Unless I'm missing something?
I'm not sure how it compares as far as speed and resources but it seems to work well in a Custom Column Script so it should be okay.
Code: Select all
$itemCount = FolderSize($cur_folder, '<d>+<f>', 0);
$dirCount = GetToken($itemCount, 1, '+');
$fileCount = GetToken($itemCount, 2, '+');
$itemCount = Eval($itemCount);Code: Select all
$contentsFlags = Eval(FolderSize($cur_folder, '(<d>!=0)*2+(<f>!=0)', 0));
// 0 = Empty
// 1 = Contains only files.
// 2 = Contains only folders.
// 3 = Contains files & folders.-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Ghost Empty Folders facility.
Thanks TheQwerty, I will certainly try those methods. That is a cool trick using Eval along with FolderSize, and yes, I did forget about SC FolderSize. I like the fact that SC FolderSize has the non-recursive flag which should speed things up since I'm typically only interested in one folder at a time. I'll run some speed test also. I'm sure they are quite fast maybe within millisecond. In some of my cases, I may be running it on every folder extracted from the each thumbnail cache file, which could be hundreds, so even a millisecond means quite a bit. Thanks again.
-
Filehero
- Posts: 2731
- Joined: 27 Feb 2012 18:50
- Location: Windows 11@100%
Re: Ghost Empty Folders facility.
Cool code, TheQwertz!TheQwerty wrote:And if you really want a bit-flag this is a nifty trick:Code: Select all
$contentsFlags = Eval(FolderSize($cur_folder, '(<d>!=0)*2+(<f>!=0)', 0)); // 0 = Empty // 1 = Contains only files. // 2 = Contains only folders. // 3 = Contains files & folders.
Cheers,
Filehero
XYplorer Beta Club