correction: should be "not working anymore" ... Also, I am not sure why these two modules (or other reasons) are not working together. Maybe you or someone can enlighten me. thanks Oliver On Nov 1, 11:09 pm, python... / gmail.com wrote: > please see the code segment, once I put in "require win32/file", the > scanning process is working properly anymore. > > require 'find' > require 'win32/file' > ... > > # the following code recursively go into each sub directory and read > file information > # options[] save certain options such as directory to scan and if run > verbosely. > > Find.find(options[:dir]) do |path| > if File.file?(path) > if options[:verbose] > puts "Scaning #{path}" > end > size = File.size?(path) > # ... do some work on the file > end > end > end > > On Nov 1, 9:53 pm, "Daniel Berger" <djber... / gmail.com> wrote: > > > python... / gmail.com wrote: > > > Hi, folks > > > > the subject has been reported before, basically, ruby File.size() won't > > > work properly on windows when file size exceed certain limit (2GB > > > maybe). One workaround is to require win32/file. Yes, this will get you > > > correct file, however, this will break the code (in my case, the find > > > module) ... the previous recursive scan of file system stop > > > functioning.Whoa, what? Can you please elaborate on how win32-file causes problems > > with your filesystem scan? > > > Thanks, > > > Dan