Added method to copy file tree.