Copying a directory tree
Moderator: General Moderators
Copying a directory tree
Hello! Does anyone have a script for copying a directory tree from one place to another? Or if somebody can give me some hints how to do it... Thanks!
In my experience, you don't need to worry about copying every file in the directory tree, just the directory at the top. For example, if you have a directory: /var/www/html/ and you want to copy every file in that directory, just copy that directory and each file underneath will be copied as well.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.