From: Clement Ow Date: 2008-05-23T11:46:57+09:00 Subject: Re: Local Jump Error Sebastian Hungerecker wrote: >> Find.find(src1) do |file| >> file.each do |f| > > find yields the filenames as strings. So file.each will call String#each > on the filename. I don't think that that's what you want to do there (as > filenames only have one line anyway). > > HTH, > Sebastian Ok, but if i just put >Find.find(src1) do |file| and eliminate file.each I get an error in: `basename': can't convert Array into String (TypeError) It seems that there is an array created someway or another.. Is there any way i can carry out my code with the consideration that I cant have file.each? Or any other way that does the same logic? (all i want to do is to search for files in my source paths with some exceptions included and then execute commands accordingly(move, copy or delete). Much help is appreciated! -- Posted via http://www.ruby-forum.com/.