Skip to content

Commit

Permalink
Missing print, Fixed #92
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed Jul 22, 2024
1 parent 9c54c58 commit ae089da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smbclientng/core/InteractiveShell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion smbclientng/core/SMBSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ae089da

Please sign in to comment.