From 25844a1f5991221b194b061881bec0e5aa8ee665 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Fri, 26 Nov 2021 07:49:27 +0100 Subject: [PATCH] Fix listdir call --- classes/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/connection.py b/classes/connection.py index 55d61b8..9716890 100644 --- a/classes/connection.py +++ b/classes/connection.py @@ -82,7 +82,7 @@ class Connection: Returns: list: List of the names of files (str) located at the provided path """ - return self._sftp.listdir(str(path) if path else None) + return self._sftp.listdir(str(path) if path else ".") def _remove(self, path: Union[str, Path]) -> None: """Remove a file from the Vessel