MacOS Finder Shows Zero-Size Folders
macperformanceguide.com
macperformanceguide.com
Someone that needs to write anything to fill his blog of a narrative of "Apple is dying".
Also, I'm 100% sure in the old days, it had an indication it was calculating the size when the number wasn't final.
What do you mean? The "Size" column is completely empty for directories.
If you right click and open properties on a directory, it will show a size that grows four times per second, very blatantly a calculation in progress.
How do you get this bug on Windows?
On windows? How are you getting that column to not be permanently blank on directories?
https://answers.microsoft.com/en-us/windows/forum/windows_10...
Basically: You see one file size on a parent folder, and when you drill in further it changes. I'm surprised these explorers don't try to cache some of the info somehow.
Also they're reporting that it only happens with full filenames over MAX_PATH, so it's a very different bug. The base idea of "show a continuously-increasing size until don't calculating" works fine
Edit: Actually, apparently there is a bug related to this in recent versions of Windows, but it's still a behavior that can happen even without a bug.
I've tested with a SMB share, it says "calculating" when it doesn't know the size of a directory:
https://i.postimg.cc/3xn1sNC6/Screenshot-2019-02-25-at-08-03...
It also shows "--" when in list view:
https://i.postimg.cc/66n09YfC/Screenshot-2019-02-25-at-08-05...
I can't help myself: If you never see it on HFS, how can you see it less on APFS? :)
American colloquialisms are fun.
American colloquialisms are awkward, but if you dig deep enough, you will find traces of their original meaning shining through, despite the best efforts of the people to eliminate it.
Ha, someone needs to update their examples now that a "high-definition TV" is every TV and $100 gets you a brand new one.
Until it start happening to me. I get the "this file is 0 bytes" bug for some time.
Is fixed?
I don't know! Is just that the "0 bytes" files was part of my project and the bug manifest other nasty effect... But I can't claim, right now, the bug is not here!
I see it all the time now.
This seems to occur only on Softraid (and maybe SD card) filesystems.
So it's just an edge case that probably never was considered or only manifests until certain circumstances.
Hardly a guaranteed symptom of sloppy work.
Option-Command-O on the /Applications/Photos.app. It'll go into repair library mode and might fix things.
I tried to narrow down what went wrong. Launching a previous state of the library on Mojave from a backup deleted the same files with the following output in Console:
Photos Import failed during master recovery for path: 2018/10/08/20181008-093231/28f7a73f-1737-4pb6-9275-1c35dwb8a30a.JPG, Error Domain=com.apple.photos.reddwarf.ingest Code=1 "Removed version uuid: Gvj78Pses+eRzULLoWJ83g because imported master was either removed, or chosen as the candidate master during de-dup" UserInfo={NSLocalizedDescription=Removed version uuid: Gvj78Pses+eRzULLoWJ83g because imported master was either removed, or chosen as the candidate master during de-dup}
It is also a good idea to try to organize your way out of large directories (that is, directories with many immediate children). Some filesystems dislike large directories performance-wise, and manual workflows rarely deal well with very long file sequences.
For what it's worth, I was massaging several GB of Newsgroup data into SQL. As I recall, I used grep to decompose the data into components. I crunched one year segments. For each year, each type of header, and message bodies, went into a subdirectory, tagged with the message ID. So in each of those subdirectories, there was one file for each message in the data segment. I did it that way, because each type of component needed custom regex to become SQL fields. In the end, the header types and message bodies became tables, indexed and linked by message IDs.
So anyway, there were lots of temp files.
Why did I do that? You might ask. Well, there was this notorious troll, who was on a vendetta against friends and I. He didn't just post trash. He spoofed our messages, making fun of us, and trying to sow discord. So it was virtually impossible to filter out his shit.
So basically I identified many of his personas, going back a decade or two. And eventually I found posts that included unobscured IP addresses and meatspace email addresses. So I emailed him, and threatened to dox him, if he didn't stop trolling us. So he did. And I never actually doxxed him, because that would have violated his privacy.
It was Ari Silverstein, by the way.[0] None of my personas posted there, but people were aware of my work.
0) https://www.velocityreviews.com/threads/tracking-ip-addresse...
I don't know what the actual bug is. Either Finder doesn't show files for which it has not generated an icon yet (ie, it doesn't show a placeholder) or it just for some reason takes forever for the finder to get a list of files. I know getting the the actual list for files for any one folder should not take more than a moment (can do so from terminal to test)
The result is it was basically unusable. I'd scroll down and the finder would be adding and reshuffling the layout of images for 1 to 2 minutes making it impossible to actually use to find things. There's no way to know when it's finished. I'd start to select stuff thinking it had settled down and stuff would shift under my mouse still.
If you look closely here you'll see as I'm scrolling down the files keep shuffling around https://www.youtube.com/watch?v=zdAoe-urFrQ#t=0m30s
EDIT: only when opening "properties" dialog
Update: for other folders, its showing “Calculating size” as it should, so its either an intermittent bug or has some sort of specific trigger.
So the problem is likely with size caching in Finder.
I tried getattrlist on my system, and ATTR_DIR_ALLOCSIZE is always 0 and ATTR_DIR_DATALENGTH is some unrelated small number (probably size of directory entry in FS, not size of its files).