'This method copies a list of files from a source node to a destination node'

def _copy(self, file_list, src, dest):

    for f in file_list:
        srcpath = os.path.join(src, os.path.basename(f))
        if os.path.isdir(srcpath):
            shutil.copytree(srcpath, os.path.join(dest, os.path.basename(f)))
            self.folder_copied_count = (self.folder_copied_count + 1)
            print((((((('Copied    directory    "' + os.path.basename(srcpath)) + '"    from    "') + os.path.dirname(srcpath)) + '"    to    "') + dest) + '"'))
        else:
            shutil.copy2(srcpath, dest)
            self.file_copied_count = (self.file_copied_count + 1)
            print((((((('Copied    "' + os.path.basename(srcpath)) + '"    from    "') + os.path.dirname(srcpath)) + '"    to    "') + dest) + '"'))
