Ticket #4247 (new defect)

Opened 3 years ago

Cannot go up a level when an upper directory has been deleted

Reported by: birdie Owned by:
Priority: trivial Milestone: Future Releases
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Steps to reproduce

  • mkdir -p /tmp/1/2
  • navigate to /tmp/1/2 in MC
  • rm -rf /tmp/1
  • try to go up a level in MC -> Error "Cannot change directory"

To be honest I don't know what the best solution could be. I just don't like the fact that the user is stuck in this situation. Of course you can type "cd /some/other/dir" but many don't know about it. You can also exit MC.

Maybe MC could show a prompt, "MC cannot go up a level, do you want to enter the root directory instead, Yes/No?".

Or maybe try going even higher-level directories but that's a recipe for disaster. Imagine it's a deep network path, /mnt/net/1/2/3/4/5/6/7/8 and each attempt of opening a directory could lead to a 2 minutes time out - not good.

Note: See TracTickets for help on using tickets.