@@ -199,32 +199,34 @@ def is_alive(self) -> bool:
def copy_from(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Copy a file from the remote Node to the local filesystem.
Copy `source_file` from the remote Node associated with this remote session
- to `destination_file` on the local filesystem.
+ to `destination_dir` on the local filesystem.
Args:
source_file: The file on the remote Node.
- destination_file: A file or directory path on the local filesystem.
+ destination_dir: A dir path on the local filesystem, where the `source_file`
+ will be saved.
"""
@abstractmethod
def copy_to(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Copy a file from local filesystem to the remote Node.
- Copy `source_file` from local filesystem to `destination_file` on the remote Node
+ Copy `source_file` from local filesystem to `destination_dir` on the remote Node
associated with this remote session.
Args:
source_file: The file on the local filesystem.
- destination_file: A file or directory path on the remote Node.
+ destination_dir: A dir path on the remote Node, where the `source_file`
+ will be saved.
"""
@abstractmethod
@@ -106,18 +106,18 @@ def is_alive(self) -> bool:
def copy_from(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Overrides :meth:`~.remote_session.RemoteSession.copy_from`."""
- self.session.get(str(destination_file), str(source_file))
+ self.session.get(str(source_file), str(destination_dir))
def copy_to(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Overrides :meth:`~.remote_session.RemoteSession.copy_to`."""
- self.session.put(str(source_file), str(destination_file))
+ self.session.put(str(source_file), str(destination_dir))
def close(self) -> None:
"""Overrides :meth:`~.remote_session.RemoteSession.close`."""
@@ -181,32 +181,34 @@ def join_remote_path(self, *args: str | PurePath) -> PurePath:
def copy_from(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Copy a file from the remote node to the local filesystem.
Copy `source_file` from the remote node associated with this remote
- session to `destination_file` on the local filesystem.
+ session to `destination_dir` on the local filesystem.
Args:
- source_file: the file on the remote node.
- destination_file: a file or directory path on the local filesystem.
+ source_file: The file on the remote node.
+ destination_dir: A dir path on the local filesystem, where the `source_file`
+ will be saved.
"""
@abstractmethod
def copy_to(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Copy a file from local filesystem to the remote node.
- Copy `source_file` from local filesystem to `destination_file`
+ Copy `source_file` from local filesystem to `destination_dir`
on the remote node associated with this remote session.
Args:
- source_file: the file on the local filesystem.
- destination_file: a file or directory path on the remote node.
+ source_file: The file on the local filesystem.
+ destination_dir: A dir path on the remote Node, where the `source_file`
+ will be saved.
"""
@abstractmethod
@@ -88,18 +88,18 @@ def join_remote_path(self, *args: str | PurePath) -> PurePosixPath:
def copy_from(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Overrides :meth:`~.os_session.OSSession.copy_from`."""
- self.remote_session.copy_from(source_file, destination_file)
+ self.remote_session.copy_from(source_file, destination_dir)
def copy_to(
self,
source_file: str | PurePath,
- destination_file: str | PurePath,
+ destination_dir: str | PurePath,
) -> None:
"""Overrides :meth:`~.os_session.OSSession.copy_to`."""
- self.remote_session.copy_to(source_file, destination_file)
+ self.remote_session.copy_to(source_file, destination_dir)
def remove_remote_dir(
self,