From: Greg Hauptmann Date: 2006-12-03T19:58:19+09:00 Subject: Re: File.size() returning negative for large files ???? ------=_Part_12858_12300031.1165143497318 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline excellent!! thanks Eric - who knows how long that would have taken me to discover for myself :) On 12/3/06, Eric Hodel wrote: > > On Dec 3, 2006, at 24:30 , Greg Hauptmann wrote: > > On 12/3/06, Damjan Rems wrote: > >> Greg Hauptmann wrote: > >>> I'm getting a negative number being returned for large files when > >>> using File.size()??? Any ideas? One of my ruby books says an > >>> Integer can be any size?? > >>> > >>> I'm using: > >>> - File.size(path) > >>> - getting negative number responses for large files (e.g. > >>> -1001581 where file was really around 3.2GB) > >> > >> It is not yours, but Windows fault. > > > > Is there a work around for this guys? > > [-1001581].pack('l').unpack('L').first # =3D> 4293965715 > > -- > Eric Hodel - drbrain@segment7.net - http://blog.segment7.net > > A: Yes > Q: Is top-posting bad? > =97 Derek Milhous Zumsteg > > > > ------=_Part_12858_12300031.1165143497318--