diff --git a/src/SSHLibrary/library.py b/src/SSHLibrary/library.py index aba4026de..a2d3e33ba 100644 --- a/src/SSHLibrary/library.py +++ b/src/SSHLibrary/library.py @@ -2193,7 +2193,6 @@ def list_files_in_directory(self, path, pattern=None, absolute=False): files = self.current.list_files_in_dir(path, pattern, absolute) except SSHClientException as msg: raise RuntimeError(msg) - files = self.current.list_files_in_dir(path, pattern, absolute) self._log( "{0} file{1}:\n{2}".format( len(files), plural_or_not(files), "\n".join(files)