создал команду копирование файлов
This commit is contained in:
parent
00832523b7
commit
f65703512d
|
|
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue