Topic: Rename file

Hi all,

Could you please teach me how to rename the filename of file by using ruby. for example, at the folder public/images/datafile/002.jpg, can use the script to change the 002.jpg to abc.jpg?

Thank you very much.

Re: Rename file

File.rename