CopyContext: Replace src_uri, dst_uri by src, dst
Allow to pass ready-made FileContext objects to CopyContext's destructor so it doesn't need to instantiate them itself.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
772512aee0
commit
f2ca32a343
4 changed files with 21 additions and 11 deletions
|
|
@ -14,8 +14,8 @@ from .log import *
|
|||
|
||||
class TarIo(CopyContext):
|
||||
|
||||
def __init__(self, src_uri: str, dst_uri: str) -> None:
|
||||
super().__init__(src_uri=src_uri, dst_uri=dst_uri, chroot=False)
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs, chroot=False)
|
||||
|
||||
def _match(self, path: str, path_filter: list[str]) -> bool:
|
||||
return path in path_filter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue