I'm calling client.PutFile() as follows:
this.client.PutFile(fileName, remoteFile);
where
fileName = "./testResources/someFile.txt"
I'm on a Mac, so forward-slashes make sense. However, the call produces the following error:
Error: System.InvalidOperationException: Local item doesn't exist.
at Rebex.IO.LocalItem.dkiut()
at Rebex.IO.LocalItem.get_Length()
at mupjf.nsbcv.fukyt(TransferAction p0, String p1, String p2, Char[] p3)
at Rebex.Net.Sftp.kabfl(TransferAction p0, String p1, String p2)
at Rebex.Net.Sftp.PutFile(String localPath, String remotePath)
If I switch the slashes to back-slashes as follows:
fileName = ".\testResources\someFile.txt"
there's no failure. Is this a bug?