Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Ruby Forum


You are currently viewing our Ruby Forum as a guest. Please register to participate.
Login



Reply
Old 06-13-2011, 08:58 PM files
daisies1062's Avatar
Extreme Talker

Posts: 168
Trades: 0
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.
daisies1062 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to files
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10272 seconds with 11 queries