From: Joel Pearson Date: 2013-02-23T19:00:22+09:00 Subject: Re: Ruby Script read excel file to then read a directo You're missing the wildcard from the search, which would defeat the point of using glob, that case you might as well just specify the filename directly. Isn't "row" an array? I'm not sure you can add the array to a string like that. To debug, try breaking this down into smaller steps, each with their own variable assignation and debugging output. Compare the filename strings you're picking up from the sheet to the real filenames you have to check for differences. I dont' know how the spreadsheet data compares to the file itself, but you could try something like ("/Users/eccleshall/ImageCleanUp/#{ row[0] }*") That is: your directory path + the first cell of data in your row + a wildcard to account for file extensions. -- Posted via http://www.ruby-forum.com/.