SMBC_rename() is the api exposed by libsmbclient library to move the file or folder from source to target. But if the file / folder already exists on the target, then the target location is deleted by the library and new source is copied onto the target location. This is a problem as end user doesn't have the control to not delete the file.
Any update on this please.
This issue was mentioned again in a review for GNOME's user-space SMB client implementation: https://gitlab.gnome.org/GNOME/gvfs/-/merge_requests/163