You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent behaviour between the synchronous and asynchronous versions of GetCanonicalPath #1863
While looking at ISftpFile.MoveTo(destination) vs ISftpClient.RenameFileAsync to try to avoid an SFTP issue (on the server rather than with this library), I noted that RenameFileAsyncultimately calls _sftpSession.GetCanonicalPathAsync (the async path) while MoveTo call _sftpSession.GetCanonicalPath (the sync path)
The problem is the implementation of the async and sync versions differ, such that the async fallback path in the code re-queries the full path instead of the parent, whilst the sync path queries the parent path.
Suggested
The correct behaviour is in the synchronous version of the method; the Async versions should fallback to the parent path in the same way
Activity