Hi,

At Sat, 16 Aug 2008 06:35:31 +0900,
Anonymous wrote in [ruby-core:18314]:
> Bug #449: File.zero? returns true when given a directory on Windows

> On Mac OS X File.zero? returns false when given a directory.

It is very file-system dependent behavior, and the result has
no meaning on any systems.

On unix-like systems, size of properly created directory can
never be 0, since there are "." and ".." always.

# `properly' means it is created with mkdir system call, but
# not mknod syscall by root.

On the other hand, Windows claims "size of a directory always
must be 0".

-- 
Nobu Nakada