Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] CWD was added twice (in self.mkdir and in self.put_file_recursively #53

Merged
merged 1 commit into from
Jun 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading