python152 / 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

Please define "not working any more".  What isn't working exactly?  Is
there an error message?  Or is File.file?(path) not working?  If so,
what does "path" look like?

I'm afraid I need more information in order to help you.

Regards,

Dan