copy_file handles folders
Make base_command ancestor independent