[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

FileTest.size > 2GB ?

Manuel Kasten

3/12/2006 12:54:00 PM

Hello,

I'm using "ruby 1.8.4 (2005-12-24) [i386-mswin32]" and I'm
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?

Regards, Manuel
1 Answer

Nobuyoshi Nakada

3/13/2006 2:22:00 PM

0

Hi,

At Sun, 12 Mar 2006 21:58:44 +0900,
Manuel Kasten wrote in [ruby-talk:183773]:
> I'm using "ruby 1.8.4 (2005-12-24) [i386-mswin32]" and I'm
> 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?

mswin32 version doesn't have large file support yet.

--
Nobu Nakada