cd to non-existing directory

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

cd to non-existing directory

Post by *roentgen »

If the target directory does not exist TC shows no error message at all.

This is both confusing and dangerous.

Moreover, suppose I change dirs using TC directory hotlist to "c:\temp\dir1\" but "dir1" does not exist. TC will silently navigate to "c:\temp\".

Applies in most places the cd command may be used: command line, dir hotlist, buttons, start menu.
TC for Linux please!
maki
Junior Member
Junior Member
Posts: 6
Joined: 2008-02-22, 22:41 UTC

Post by *maki »

I wouldn't say, this is a bug.
But indeed, I like this behavior. Sometimes when doing "RTFM",
I copy&paste path names ...
So it is good to jump to a path, which is the last existing, from a longer subpath string.

Regards
MKI
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Suggestion to improve this:
Maybe an optional warning would be useful, maybe the same that appears when using <Ctrl+cursor_right> or <Ctr+cursor_up> on *.lnk files, whose target doesn't exist anymore.

An OK button there could CD to the target as near as possible,
a Cancel button could abort the CD command.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2StatusQuo

Support+
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
maki
Junior Member
Junior Member
Posts: 6
Joined: 2008-02-22, 22:41 UTC

Post by *maki »

StatusQuo wrote:Suggestion to improve this:
Maybe an optional warning would be useful, maybe the same that appears when using <Ctrl+cursor_right> or <Ctr+cursor_up> on *.lnk files, whose target doesn't exist anymore.

An OK button there could CD to the target as near as possible,
a Cancel button could abort the CD command.
Please, do not blame the users with an extra MessageBox.
I think, users who are typing CD commands or pressing CTRL+Cursor keys
are not "normal" users, but more likely power users.
And if you are power user, you are recognizing such behavior.
If this is documented in the help, than I would say, please don't change
this behavior.

Regards
MKI
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

maki wrote:Please, do not blame the users with an extra MessageBox.
That's why I wrote "optional"...
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply