All Posts by Date or last 15, 30, 90 or 180 days.
also by Lloyd: diglloyd.com photography and WindInMyFace.com
Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd Deal Finder...
Buy other stuff at Amazon.com...
Up to 1527MB/s sustained performance
Handpicked deals...
$390 $270
SAVE $120

$1798 $1598
SAVE $200

$3297 $2797
SAVE $500

$3397 $2797
SAVE $600

$150 $90
SAVE $60

$1398 $898
SAVE $500

$3698 $2998
SAVE $700

$2998 $2498
SAVE $500

$1799 $1299
SAVE $500

$1999 $1199
SAVE $800

$2299 $1599
SAVE $700

$2399 $2049
SAVE $350

$2799 $2399
SAVE $400

$2799 $1899
SAVE $900

$1199 $920
SAVE $279

$997 $897
SAVE $100

$2099 $1699
SAVE $400

$1999 $1349
SAVE $650

$1999 $1599
SAVE $400

$1999 $1999
SAVE $0

$1329 $929
SAVE $400

$4499 $3999
SAVE $500

$329 $329
SAVE $0

$1499 $999
SAVE $500

$1499 $1289
SAVE $210

$2199 $1999
SAVE $200

$3399 $2199
SAVE $1200

Apple Core Rot: macOS Finder Shows Zero-Size Folders — Very Dangerous if Unaware

Apple Core Rot extends to all areas of macOS. See Apple Core Rot: It’s Big Things, and Hundreds of Little Ones, that Together Add up to Chaos and also Apple Quality Control: Enough is Enough.

The macOS Finder ought to be rock solid, but it is rife with bugs, some very serious. See also One more Finder File Copy Bug: Is it Even Safe to Count on the macOS Finder to Copy Files?.

The “Zero bytes” folder bug

Update: this bug also applies to files, and I saw this bug back in 2016 and 2017:

...

This bug occurs on macOS 10.13.6 High Sierra and macOS 10.14.3 Mojave.

This bug does not involve using the Finder to copy files; it just exists on its own.

I just about had a heart attack when it appeared that 7TB or so of my data was gone. Observe the “Zero bytes” folders below. OMG. See the following screen shots for more. This was NOT a transient thing for a few seconds—after 10 minutes it was still wrong.

Generally if I see a zero byte folder, I just delete it out of habit. That’s a habit I have to unlearn: what if it was just one folder among many and Get Info also shows zero bytes... hard to not want to just trash the thing.

This bug is particularly severe on hard drives (because they are slow) and when there is disk I/O going on. You might wait a looooooooooong time to see any display of the size. Why can’t it just say “calculating...”? Because it eventually seems to get it right (though I”m not sure of that).

But it gets worse, continued below.

macOS Finder shows “Zero bytes” for folders containing data

How about doing a Get Info on a folder—surely that will be done correctly, right? Wrong.

Lo and behold: the Finder shows “Zero bytes” for the folder selected above. But it actually has about 58GB in it.

macOS Finder shows “Zero bytes” folder with about 58GB of data

The folder actually has about 58GB in it as can be seen when the folder is opened. So the Finder has all the subfolders totalled and many minutes later (or never) the parent folder might show something other than Zero bytes. Lovely.

macOS Finder showing folders

But wait, it gets stupider and stupider: here we have an 11.91GB parent folder that contains subfolders that total 509GB or so. What a joyous set of clusterbugs.

macOS Finder showing folders

Engineers deserve some blame

I know Apple engineers are pressed for time by calendar-driven deadlines, but sloppy work is sloppy work. In this case there is just NO EXCUSE for something this bad.

Glenn K writes:

Are your issues all on volumes using SoftRaid? If so, how do you know it isn't the issue?

I have not seen any "zero byte" folders on any of my SSDs, internal or otherwise.Are your issues all on volumes using SoftRaid? If so, how do you know it isn't the issue? I have not seen any "zero byte" folders on any of my SSDs, internal or otherwise.

DIGLLOYD: let me clarify:

  • First, the Finder does some kind of caching, so once it has the right figure, it seems to “stick”—I actually verified this just a minute ago—it showed a size (correctly) for a parent folder even while the sub-folders were listed as zero bytes (and on a non-SoftRAID volume too!). So if you open a folder and it gets it right (fast SSD), then no issue. Second, if you reboot, it seems to clear out the problem, though I have not verified that is always true.
  • If a driver caused behavioral changes of any kind in any application using file system APIs, that would be a serious problem. I don’t know of any technical way that could happen.
  • To speak directly to the “SoftRAID” non-issue: this bug also happens on a camera card or any drive; see the path in the screenshot in Apple’s Penchant for IGNORING Data Loss Risks Continues, Unabated: Finder Erroneously Shows Files as Zero Bytes.
  • SSDs are far faster than hard drives, particularly for directory scans (maybe 100X faster). In this case with half a million files, it takes a loooooong time to scan the HDD. But the point is, if subfolders total up to more than a parent, the parent should always have one of two things: "pending" or the actual size. A parent folder should NEVER show zero bytes unless it is truly empty.
  • The issue is provoked by I/O activity since I/O activity slows down all other I/O and macOS is absolutely terrible under heavy I/O load. However, I have seen it under other circumstances where load is low as well.
  • I deem twenty (20) minutes rather long for it to have the wrong figure. It never did get the right figure (until I rebooted), hence I deem it a bug.
Apple 13-inch MacBook Pro
Only $1799 $1149

8GB / 256GB SSD / 2.3 Ghz Intel Core i5

Apple Refurbished Factory Sealed
Apple 1 Year Limited Warranty
Awesome for a student!

Save the tax, we pay you back, instantly!
View all handpicked deals...

Samsung 2TB T5 Portable Solid-State Drive (Black)
$390 $270
SAVE $120

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2019 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__