SftpPermissionDeniedException when deleting multiple files async #1428
Replies: 2 comments
-
Have you tried awaiting each one in turn, to see if that's the problem? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Allright, the code does work, the problem was that the user I logged in with, actually didn't have delete permissions... But the SFTP connection does support multiple async calls at the same time. Nice to know! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a piece of code that recursively iterates over a folder, and deletes all found files. I have written it async to make sure it runs as fast as possible, but I keep getting SftpPermissionDeniedException. Does this mean SftpClient does not support multiple async delete tasks, and I have to await each delete task before starting the next one?
Beta Was this translation helpful? Give feedback.
All reactions