Closed aschoolboy closed 3 years ago
… An error will be returned if no directory with the specified path exists, or if the specified directory is not empty, or if the path specified a file system object other than a directory. The server responds to this request with a SSH_FXP_STATUS message.
https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-02
Code is already working as intended and according to the standard.
fix bug:if the directory contains files or directories, RemoveDirectory will return SSH_FX_FAILURE.