From: Anurag Priyam Date: 2011-03-24T03:18:17+09:00 Subject: Re: Problems moving and renaming pictures with this code, what wrong? > I have some .jpg pictures located in a folder called “temp-photos” in my > desktop and I want to rename them and then move them to a folder which > is also located in my desktop but in a folder called “my-photos” and I’m > trying the code below but when I run it, it just doesn’t do anything, no > errors but the pictures don’t get moved or renamed. [...] > pic_names = Dir['/Users/userName/Desktop/temp-photos.{JPG,jpg}'] Since temp-photos is a directory, should not the glob pattern be: pic_names = Dir['/Users/userName/Desktop/temp-photos/*.{JPG,jpg}'] -- Anurag Priyam http://about.me/yeban/