moving files in server?

Hi

I have a problem. I need to copy directory x to directory y. Only in
server. But I need to choose the directory x and y by web browoser.
How I can do it by rails? I have no ideas.