I'm looking to use a CGI script to move / rename a directory. I can't
find anything under Dir:: or File:: that looks appropriate and making a
shell command `in back-ticks` is out of the question as I'm using POST
data to determine which directory to move. What's the appropriate
mechanism for moving files in Ruby?
I'm looking to use a CGI script to move / rename a directory. I can't
find anything under Dir:: or File:: that looks appropriate and making a
shell command `in back-ticks` is out of the question as I'm using POST
data to determine which directory to move. What's the appropriate
mechanism for moving files in Ruby?
--
suffering increases your inner strength. also, the wishing for suffering
makes the suffering disappear.
- h.h. the 14th dali lama
I'm looking to use a CGI script to move / rename a directory. I can't find anything under Dir:: or File:: that looks appropriate and making a shell command `in back-ticks` is out of the question as I'm using POST data to determine which directory to move. What's the appropriate mechanism for moving files in Ruby?
FileUtils looks perfect! Thanks. Every time I feel like I'm getting
somewhere with Ruby, I find out I've been missing some obvious bit the
whole time. I couldn't even find this on Google!
FileUtils looks perfect! Thanks. Every time I feel like I'm getting
somewhere with Ruby, I find out I've been missing some obvious bit the
whole time. I couldn't even find this on Google!
--
suffering increases your inner strength. also, the wishing for suffering
makes the suffering disappear.
- h.h. the 14th dali lama
That's the first place I looked. I glossed over the modules listed below
File without thinking about it. There were a lot of them, and usually in
a situation like that, I end up going down a lot of dead-end roads. Just
goes to show what I get for being cynical!