I have noticed that some methods in SftpClient do not have async equivalents, such as Get, CreateDirectory, DeleteDirectory etc.
A workaround is to use Task.Run but the I/O done can be asynchronous, like ListDirectoryAsync and others. I need it to resolve files-community/Files#2407, instead of resorting to Task.Run.
I have noticed that some methods in
SftpClient
do not have async equivalents, such asGet
,CreateDirectory
,DeleteDirectory
etc.A workaround is to use
Task.Run
but the I/O done can be asynchronous, likeListDirectoryAsync
and others. I need it to resolve files-community/Files#2407, instead of resorting toTask.Run
.