Skip to content

Commit

Permalink
Merge pull request #53 from NudistBeaaach/main
Browse files Browse the repository at this point in the history
[bugfix] CWD was added twice (in self.mkdir and in self.put_file_recursively
  • Loading branch information
p0dalirius authored Jun 22, 2024
2 parents cbc0e8b + b314397 commit 58f3903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smbclientng/core/SMBSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 58f3903

Please sign in to comment.