[Win32utils-devel] [ win32utils-Bugs-13825 ] /win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at': bignum too big to convert into `long' (RangeError)

noreply at rubyforge.org noreply at rubyforge.org
Thu Sep 13 14:58:41 EDT 2007


Bugs item #13825, was opened at 2007-09-10 13:04
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=13825&group_id=85

Category: win32-file-stat
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
>Assigned to: Daniel Berger (djberg96)
Summary: /win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at': bignum too big to convert into `long' (RangeError)

Initial Comment:
When File.stat is called on a file that doesn't have a Created or Modified time (pointing to a Linux Samba share from WinXP in my case) it fails with;

c:/ruby/lib/ruby/gems/1.8/gems/win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at': bignum too big to convert into `long' (RangeError)
        from c:/ruby/lib/ruby/gems/1.8/gems/win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `initialize'
        from c:/ruby/lib/ruby/gems/1.8/gems/win32-file-0.5.4/lib/win32/file.rb:532:in `new'
        from c:/ruby/lib/ruby/gems/1.8/gems/win32-file-0.5.4/lib/win32/file.rb:532:in `stat'

If I don't 
 require 'win32/file'
this call suceeds (but I need the attribute methods that come with win32/file).




----------------------------------------------------------------------

>Comment By: Daniel Berger (djberg96)
Date: 2007-09-13 11:58

Message:
Curious. Please show me what the output of File.stat is (without win32/file I mean). I wonder if it defaults to epoch time or nil in that case.

Thanks,

Dan

PS - Can you please provide your name so I can give you proper attribution in the CHANGES file?

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=13825&group_id=85


More information about the win32utils-devel mailing list