Thanks to both of you, those are all good points. It looks like I will be able to do this without building my own function for it. And that was a good catch with the glob. If I wanted, how would I return a list of files going down to the nth sub-directory with glob? Also, I found out that some of the files were set as read-only which could be why the rename failed. I will give it another shot. -- Posted via http://www.ruby-forum.com/.