walter / mwsewall.com wrote:
> File.stat('file_name').size returns erroneous file sizes when the 
> files are over 2 Gigs in size (at which point the number wraps around 
> and becomes negative).  Is this an expected limitation or a bug?

I'd like to think it's a bug. Not sure.

> Is there a work around?

What's your real limit? If it's 4 gigs, you might try adding 4 gigs
to the (negative) size. E.g.,  -20,000,000 => roughly 2,020,000,000
bytes.

Of course, 4 gigs really is 2**32 or some such.

If the real limit is more than 4 gigs, I don't know if there's any
reasonable workaround.

Hal