Hello again, Lukas,
We have been using the Rebex file server to serve files via SCP without issue since your update. Thank you.
Unfortunately, when we send files from our system to the Rebex server we are getting errors.
We're using the call:
libssh2_scp_send64(session, (remote_path + filename).c_str(), file_info.st_mode & 0777, file_info.st_size, file_info.st_mtime, file_info.st_atime);
to send the file. The remote_path value is: "/home/laser/", and the filename is "AdapterTransform.xml":
I've turned on logging inside the Rebex server, which seems to be working, as the path is correct here:
"SCP: Executing command: DEBUG ScpModule(50)[25] scp -pt '/home/laser/AdapterTransform.xml'",
but a few lines down it says this:
Getting item info on '/home/laser/AdapterTransform.xml/AdapterTransform.xml': not found.
2023-04-25 16:55:12.486 DEBUG ScpModule(50)[46] SCP: Opening file '/home/laser/AdapterTransform.xml/AdapterTransform.xml' (Create, Write): failure.
It seems conceivable that this issue is also caused by LIBSSH2 being written in C and not therefore respecting proper .NET string formats.
Would you be able to check into this?
Our previous conversation was here: https://forum.rebex.net/22091/does-rebex-sftp-library-support-the-scp-f-switch-scp1-mode
I've placed the log at this link: https://app.box.com/s/kbp6lrmq6pzih4dn0qiiqv9a47ym4ez2