From: Oliver Date: 2006-11-03T03:15:12+09:00 Subject: Re: file size revisit Dan - First of all, thanks for fixing this. A general comment on this issue is: why in Ruby, the basic operation on files needs special treatment, and short of being cross-platform? If I am invoking a exotic feature that is windows only, import a win32 module would make more sense to me. In Python, the operation is uniform cross the platform import os.path os.path.getsize("filename") maybe many folks probably won't agree this, but I tend to regard the core File.size() won't work with larger file on windows a bug, though a minor one. Best, Oliver On Nov 2, 12:54 pm, "Daniel Berger" wrote: > Daniel Berger wrote: > > > I didn't reallize lstat was implemented on Windows. I'm guessing it's > > an alias, so I'll need to check the source. But, that's definitely a > > bug in win32-file (or rather, win32-file-stat). > > > I'll get this fixed and put out a release asap.Ok, fixed in CVS. I'll have a release out tonight. If you want the > fix now, just open up win32/file.rb and add this: > > def self.lstat(file) > File::Stat.new(file) > end > > Regards, > > Dan