[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
Mon Sep 10 16:04:38 EDT 2007


Bugs item #13825, was opened at 2007-09-10 16: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: Nobody (None)
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).




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

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