From ae089da4f262625ab2917ac8714233b792faee6c Mon Sep 17 00:00:00 2001 From: "Remi GASCOU (Podalirius)" <79218792+p0dalirius@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:36:44 +0200 Subject: [PATCH] Missing print, Fixed #92 --- smbclientng/core/InteractiveShell.py | 2 +- smbclientng/core/SMBSession.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smbclientng/core/InteractiveShell.py b/smbclientng/core/InteractiveShell.py index 54a36dd..176adbf 100644 --- a/smbclientng/core/InteractiveShell.py +++ b/smbclientng/core/InteractiveShell.py @@ -743,7 +743,7 @@ def command_ls(self, arguments, command): directory_contents = {} for longname in sorted(directory_contents.keys(), key=lambda x:x.lower()): - windows_ls_entry(directory_contents[longname], self.config) + self.logger.print(windows_ls_entry(directory_contents[longname], self.config)) if len(arguments) > 1: self.logger.print() diff --git a/smbclientng/core/SMBSession.py b/smbclientng/core/SMBSession.py index c21f007..23b100a 100644 --- a/smbclientng/core/SMBSession.py +++ b/smbclientng/core/SMBSession.py @@ -548,7 +548,7 @@ def list_contents(self, path=None): if path is not None and len(path) > 0: dest_path.append(path.rstrip(ntpath.sep)) dest_path.append('*') - path = ntpath.sep.join(dest_path) + path = ntpath.normpath(ntpath.sep.join(dest_path)) contents = {} entries = self.smbClient.listPath(