[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: win32 file stat and find conflict

Peña, Botp

12/21/2006 1:55:00 AM

From: lrlebron@gmail.com [mailto:lrlebron@gmail.com]:
# When I change it like this
#
# require 'win32/file/stat'
# require 'find'
#
# Find::find('C:\test') do |f|
# p f
# end
#
# Only the 'C:\test' directory is printed. None of the files or
# subdirectories show up.
#
# Any ideas on how to fix this?

cannot help you, but, i can also second that behavior here.
wish there was something like "unrequire" the "require"d

maybe something like,

require 'win32/file/stat'
begin
test_require 'win32/file/stat'
rescue
require 'win32/file/stat' :uninstall => true
end

:)

kind regards -botp


# thanks,
# Luis