From f65703512dd951afd4ad87acba0d0f43ba3ca395 Mon Sep 17 00:00:00 2001 From: Rustam Zaitov Date: Mon, 28 Oct 2013 02:25:48 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=83=20=D0=BA=D0=BE=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/commands/CopyCommand.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/commands/CopyCommand.py diff --git a/scripts/commands/CopyCommand.py b/scripts/commands/CopyCommand.py new file mode 100644 index 0000000..c57b7ab --- /dev/null +++ b/scripts/commands/CopyCommand.py @@ -0,0 +1,13 @@ +import shutil + +class CopyCommand: + def __init__(self, pathProvider, copyArguments): + assert pathProvider is not None + assert copyArguments is not None + + self.__pathProvider = pathProvider + self.__copyArguments = copyArguments + + def execute(self): + shutil.copy(self.__copyArguments.source, self.__copyArguments.target) +