Forum: Ruby Re: FileTest.size > 2GB ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F3b7b8756d0c7f71cc7460cc33aefaee?d=identicon&s=25 Berger, Daniel (Guest)
on 2006-03-13 17:02
(Received via mailing list)
> having problems with FileTest.size and files > 2GB. Seems it
> doesn't return a Bignum for them, but a (wrapped) Fixnum. For
> a 3GB File, thats a "size" of -1GB. Is there something I can
> do about it? Is there an alternative?

Yes, use win32-file, available on the RAA.

Regards,

Dan
0b561a629b87f0bbf71b45ee5a48febb?d=identicon&s=25 Dave Burt (Guest)
on 2006-03-13 21:29
(Received via mailing list)
Nobu wrote:
> mswin32 version doesn't have large file support yet.

Daniel Berger wrote:
> Yes, use win32-file, available on the RAA.

Daniel, you are the hero of Ruby users on Windows.

Dave.
This topic is locked and can not be replied to.