From: ibotty Date: 2004-04-09T19:19:15+09:00 Subject: Re: need help with recursion > You'll still have the subdirectory problem. Let's say you've got: > > a > a/b > a/b/under_score.txt > > It will run the method for b, and filename will be set to > under_score.txt. But when it stats it, it will stat it with respect > to a, unless you do a chdir to b or expand the path. you can of course simply set filename to the right value. just change this, and it should work. File.rename(filename, newname) + filename = newname end hope, i understood you. ~ibotty