From: Stefano Crocco Date: 2007-09-27T00:29:26+09:00 Subject: Re: Recursing through directories Alle mercoled� 26 settembre 2007, Gabriel Dragffy ha scritto: > Hi there > > I have a simple script (untested) > > require 'ftools' > Dir.entries( '/Volumes/' ).each |item| do > File.move( item, item.gsub( /\//, '-' ) ) if File.file? item > end > > The idea is to remove slashes from file names, I can later extend > this to include other characters also. But how the deuce can I make > it go in to each directoy to make sure each file is renamed even many > subdirectories down? > > Many thanks > > Gabriel I think that the Find module is what you need (ri Find). Stefano