Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Daniel Berger
RE: Copy Files from one directory to another? [ reply ]  
2006-12-15 13:49
You'll want to take a look at FileUtils. You can find the documentation for it at http://www.ruby-doc.org/stdlib.

Regards,

Dan

By: Dustin Townsend
Copy Files from one directory to another? [ reply ]  
2006-12-15 13:31
I have an app I wrote in VB and I want to move it to Ruby on Rails and I am trying to figure out if the function are their. Basically it just creates project folders and files by just typing in the project name.

I know I can greate new directories using the dir functions, but I wasn't sure how I could go about copying over the files...I also would like to rename the files when I copy them over to include the project name.

Thanks