We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c894b2d + 3fa2f49 commit 3631ea0Copy full SHA for 3631ea0
src/dkany/__about__.py
@@ -1 +1 @@
1
-__version__ = "0.1.2"
+__version__ = "0.1.3"
src/dkany/data_hosts/sftp.py
@@ -44,3 +44,10 @@ def __init__(
44
raise SystemError(
45
f"Could not change to base_path {default_remote_path or '/'}"
46
) from e
47
+
48
+ def exists(self, path: str) -> bool:
49
+ try:
50
+ self.connection.stat(path)
51
+ return True
52
+ except FileNotFoundError:
53
+ return False
0 commit comments