View Full Version : How can I copy files from 1 folder to another?
JustNeedsHelp
4-20-05, 04:28 PM
Hello all,
Is there a way to simply copy an already made folder, to another folder, without having to upload 1 file at a time? I am looking to clone a folder already on the website, to another directory. Or at the very least upload a whole folder, not just each file. That is what I miss about a CPanel, the ease of copying folders.
Please advise, as quickly as possible.
Thank you very much.
You can use an ftp client to copy and paste the folder to its new location.
Sincerely,
John Mundara
Tech. Support Manager
PowWeb Hosting, Inc
www.powweb.com
RTH10260
4-20-05, 04:58 PM
Is there a way to simply copy an already made folder, to another folder, without having to upload 1 file at a time? I am looking to clone a folder already on the website, to another directory. Or at the very least upload a whole folder, not just each file. Sorry, I dont have the time to prepare the script for you, but you could use the PHP SYSTEM function to use the Unix MV command.
Ref on Unix MV: http://www.freebsd.org/cgi/man.cgi?query=mv&sektion=1&apropos=0&manpath=FreeBSD+5.3-RELEASE+and+Ports
JustNeedsHelp
4-20-05, 05:49 PM
Hello,
Thank you both for your help. What is an ftp client, where can I find one, and how do I use it? Please advise.
Thank you
You can use an ftp client to copy and paste the folder to its new location.
Sincerely,
John Mundara
Tech. Support Manager
PowWeb Hosting, Inc
www.powweb.com
You can get FileZilla here http://sourceforge.net/projects/filezilla
Sorry, I dont have the time to prepare the script for you, but you could use the PHP SYSTEM function to use the Unix MV command.
Ref on Unix MV: http://www.freebsd.org/cgi/man.cgi?query=mv&sektion=1&apropos=0&manpath=FreeBSD+5.3-RELEASE+and+Ports
It's "cp" for copying.
'-a' option (or -av if you want to see the files copied) should do the job.
See the manual for more detail, and please be very careful .....
<?echo `cp -av src dest 2>&1`;?>
Go for FTP if you are not sure, as it's safer.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.