How much space does a zero KB file/folder take up?

A stupid question…?

Maybe, but the very fact that a zero KB file's existence is recorded must take up some space, no?

An empty folder or file with a label on it within a filing cabinet still takes up space.

An empty box has nothing in it, if it is strong enough it may contain a (partial, yeah I know) vacuum. It still takes up space.

But back to computers, can zero KB files/folders be safely deleted…



…and how much space will be regained by deleting a zero KB file? 😉


Adrian

iBook G4 1.07GHz, 30 GB, AE, 768mb; & iMac 17" 'Igloo' G4: 768mb, 80 GB, SD, Mac OS X (10.4.8), Belkin WiFi F5D7632, LaCie Porsche Portable 80GB, Prolific 120GB

Posted on Dec 6, 2006 11:59 AM

Reply
4 replies

Dec 6, 2006 1:06 PM in response to Adrian Clarke1

Maybe, but the very fact that a zero KB file's
existence is recorded must take up some space, no?


Yes, if I'm remembering correctly, there really isn't such thing as a zero K file. All files take up space in increments that depend on the size of the hard drive. I've forgotten the details, but basically every file will take up one unit (block?) on the hard drive. There's a limit to the number of files a hard drive can hold (which is pretty high these days), which is where the basic block size comes from in the first place.

As for folders, I'm sure there's some slight space taken up in the disk directory or something by each folder, but I think that's probably a trivial amount of space unless you're talking about an obscene number of folders. (And keep in mind that you've probably got at least 10,000 folders on your boot drive, as a rough estimate based on the 27,000 files contained in just my home folder.)

But back to computers, can zero KB files/folders be
safely deleted…


Whether it can be deleted safely has nothing to do with its size and everything to do with its purpose. If you don't know what it's for, don't delete it until you do know.

Dec 6, 2006 3:02 PM in response to Adrian Clarke1

Thousands of years ago a file would take up an entire block on a hard drive. The drive could keep track of 65,500 blocks, so the larger the drive, the larger the block. So even a one k file could take over an entire 512k block. Even though the file was one k nothing else could live in that block.
http://docs.info.apple.com/article.html?artnum=8647

In these days of modern times that is no longer true. There are thousands of tiny files in thousands of folder in OS X. I can appreciate the desire to keep your hard drive tidy, but only you will appreciate your efforts. Your computer won't care!

Dec 6, 2006 4:54 PM in response to Adrian Clarke1

The folder report Zero KB because the folder has no contents.

A folder (or directory) on a hard disk is only useful for relative referencing of files. It has nothing to do with a files location on disk. As such, it is more of a logical, rather than physical container. The space you save by deleting an empty folder is probably the 5 bytes (or however many charaters are in the folder's name) that will be deleted from the catalog file.

Dec 7, 2006 6:45 AM in response to Sherman Homan

Many thanks all for your informative replies, especially Sherman for the link.
I wasn't particularly serious about deleting zero KB files, I just posed the question as a way of trying to determine the actual size of something that is, apparently, 'nothing'.

I think I ought to get out more…

Thanks again, if I was able I'd have given you all User uploaded file as each answer contributed to a better understanding.

Take care,

Adrian

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How much space does a zero KB file/folder take up?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.