создал команду копирование файлов

This commit is contained in:
Rustam Zaitov 2013-10-28 02:25:48 +04:00
parent 00832523b7
commit f65703512d
1 changed files with 13 additions and 0 deletions

View File

@ -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)