From b3143975a0205c4e053cc7641a687b64b6cdf4e4 Mon Sep 17 00:00:00 2001 From: Dale Cooper Date: Sat, 22 Jun 2024 15:21:27 +0200 Subject: [PATCH] Fix: CWD was added twice (in self.mkdir and in self.put_file_recursively) --- smbclientng/core/SMBSession.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smbclientng/core/SMBSession.py b/smbclientng/core/SMBSession.py index b7fd67b..f55f8f8 100644 --- a/smbclientng/core/SMBSession.py +++ b/smbclientng/core/SMBSession.py @@ -914,7 +914,7 @@ def put_file_recursively(self, localpath=None): # Create remote directory remote_dir_path = local_dir_path.replace(os.path.sep, ntpath.sep) self.mkdir( - path=ntpath.normpath(self.smb_cwd + ntpath.sep + remote_dir_path + ntpath.sep) + path=ntpath.normpath(remote_dir_path + ntpath.sep) ) for local_file_path in local_files[local_dir_path]: