Exclude 0 byte files

Deleted by Disk4mat

Even though the file indicates that it has 0 bytes it still takes up one 512 byte block on the hard drive as that is the nature of how files are stored there.

Deleted by Disk4mat

If I launch Notepad I can immediately save a file which holds nothing.

File properties shows it to be 0 bytes, and the size on disc is 0

Immediately I add a solitary character to this file, properties shows Size 1 byte, Size on disk 4 KB - the size of my clusters.

I suspect that Yokenny has a cluster size of 512 bytes.

The "size" of the file only determines how many clusters are needed to hold it.

Any size greater than zero will consume at least one cluster.

n.b. How does Windows Explorer tell me when I created this Null.txt file, and what its name is ?

I suspect that this is data planted in the MFT (or the FAT depending upon O.S),

AND that this data consumes yet another cluster, even when the file it describes is zero bytes long.

I do not think it useful to set a specific size as a limit,

AND most users will NOT look at file properties

- they will simply see a DIR listing showing a file size of 1 byte (or how many characters I typed),

and users who do not appreciate the difference from "Size on Disk" may soon start posting bug reports !!!

Regards

Alan

I suspect that Yokenny has a cluster size of 512 bytes.

Just about all you need to know about clusters, sectors and File Systems:

http://books.google.ca/books?id=9vfQKUT_Bj...3&ct=result

Deleted by Disk4mat in protest of MOD abuse

YoKenny

That was actually a bit more than I need to know !!!

Thank you, it was very informative.

Regards

Alan