|
I am not really that familiar with ruby and still reading on some tutorials of this new programming language but a friend of mine a newbie also in Ruby, encountered on a minor problem of which I really would like to help him; and I think that this forum will do that for me.
Here is the situation:
It’s simply renaming some files to lower case in a directory;
And he had tried this:
File.rename("#{file}", "#{file}.downcase")
and this:
File.rename("#{file", "#{file.downcase}")
He had to do this since it will end up on a Unix platform and it's agreed that they will remain in a lower case.
|