An SSH_FXP_RMDIR request on a file removed the file, as rmdir and remove were both handled by VFS.Remove. Make rmdir return ENOTDIR for anything which isn't a directory, as serve ftp already does.
An SSH_FXP_RMDIR request on a file removed the file, as rmdir and remove were both handled by VFS.Remove. Make rmdir return ENOTDIR for anything which isn't a directory, as serve ftp already does.