User-defined timeout for copy
and move
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
@@ -54,8 +54,9 @@ class File(FsItem):
|
||||
destination,
|
||||
force: bool = False,
|
||||
recursive: bool = False,
|
||||
dereference: bool = False):
|
||||
fs_utils.copy(str(self), destination, force, recursive, dereference)
|
||||
dereference: bool = False,
|
||||
timeout: timedelta = timedelta(minutes=30)):
|
||||
fs_utils.copy(str(self), destination, force, recursive, dereference, timeout)
|
||||
if fs_utils.check_if_directory_exists(destination):
|
||||
path = f"{destination}{'/' if destination[-1] != '/' else ''}{self.name}"
|
||||
else:
|
||||
|
Reference in New Issue
Block a user