'A copy command that works with files or directories.'

@classmethod
def copy(cls, path, target, is_file=False, **__):

    log.info('Local    Copy    %s    to    %s', path, target)
    if is_file:
        if (path == target):
            return
        if os.path.exists(target):
            os.remove(target)
        shutil.copy2(path, target)
    else:
        if os.path.exists(target):
            shutil.rmtree(target)
        shutil.copytree(path, target)
