Deleting the current directory doesn't remove it from the tree view and should navigate to the parent
|Reported by:||A.McBain||Owned by:|
|Component version:||188.8.131.52||Operating system type:||Windows|
|Operating system version:|
Let's say we have a directory A, with a directory B inside of it, and we click to view directory B. If we right click directory B and delete it, it succeeds, and FileZilla sends off the "update this view" request. This request results in an "Error: Unable to open .: no such file or directory" because, of course, the directory it wants was removed.
As a result of the error, the directory is not removed from the remote site tree view because the listing failed. Also unfortunately if you try to click around to the parent directory or other directories to get back to places that do exist, all you get is the "Ding!" error sound.
Clicking the refresh button while selecting another (existing) directory doesn't fix this state. To do that you need to click the cancel current operation button and select yes. Afterwards you are then free to select the parent directory which successfully lists its contents, and the directory is now removed from the view.
It seems to me it would be nice, from a user point of view, to check if you're deleting the directory you're currently viewing and instead of trying to refresh the current directory after the deletion succeeds, refresh the parent directory instead.