FileTest.size > 2GB ?

M

Manuel Kasten

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
 
N

nobu

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top