TC doesn't allow to make shortcut of a directory in its subdirectory

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *AntonyD »

2Hacker
Do we somehow translate this text you quoted into our native languages of communication in different ways?
Because I see in it only the ABSENCE of at least some mention of problems with processing of .LNK files!
This is absolutely not what is written in this text.
#146217 personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *Hacker »

AntonyD,
Well, you are right, it depends on if .lnk files to folders were affected by the above mentioned history.txt fixes or not.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *MVV »

Hacker wrote: 2023-12-26, 12:17 UTCNot sure how serious you are :D
I really want to know what kind of software uses LNK files for enumerating subfolders, because it seems that TC doesn't allow creation of an absolutely legal LNK file only because of such a software. :)
JOUBE wrote: 2023-12-26, 08:35 UTCThe Tc will never forbid creating a file and moving it where it is desired. So, not a bug and no need to change anythng at this point.
In this case TC really doesn't allow me to create a file. And the error description (mentioned in the first post) is wrong.
gpant
Junior Member
Junior Member
Posts: 21
Joined: 2006-11-19, 19:58 UTC
Location: Athens, Greece
Contact:

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *gpant »

Hacker wrote: 2023-12-26, 12:17 UTC
27.02.19 Release Total Commander 9.22 release candidate 1 (32/64)
01.10.18 Fixed: Function to check file system links (junctions, reparse points) for infinite loops didn't handle relative paths created e.g. via "mklink /D MyDirLink ..\MyDir" while in directory "C:\MyDir" (32/64)

07.04.09 Release Total Commander 7.50 Beta 17
03.04.09 Fixed: NTFS file system: Do not follow symlinks which point to themselves or a parent dir of the current dir in "calculate occupied space", copy/move, search, and synchronize dirs (avoids infinite loops)
Roman
The documentation you refer to, is about soft and hard links in the FS level, a file with the LNK extension is a file that contains metadata for a UNC, if software is parsing it and making assumptions on its contents (or even worse treating it as an actual symlink!) its an issue with that specific application not the OS or TC. Saying that, I don't mind the limitation in TC, I don't really use lnk files :) .
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *ghisler(Author) »

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *AntonyD »

2ghisler(Author)
You did not explain WHY you did so. As we all here explained to you that the essence of the .LNK file is COMPLETELY differs from the any kind on links (sym/hard) - in this case you do NOT have any pros objections in order to leave this bug intact\unchanged.
#146217 personal license
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *JOUBE »

AntonyD wrote: 2024-01-16, 12:42 UTC leave this bug
Not a bug, a decision...
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *AntonyD »

If you look from the perspective of the meanings and facts that we have reported here and what I was guided by when I decided to support this topic, then this long-standing “decision” should now be considered only as a bug. That's why I wrote it right away.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *ghisler(Author) »

I did explain it in this post:
viewtopic.php?p=446775#p446775

The problem is that I decided this many years (decades?) ago and don't remember why. Enabling it now would only ask for trouble.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *AntonyD »

many years (decades?) ago and don't remember why.
Taking into account the specified period of time and complete forgetting of the fact - on the basis of what program or something else this modification was made in the code - at the current moment of time we can definitely enable full support of this file extension. At least under some sort of flag, if it bothers you so much.
Because at the current moment in time it's impossible to find ANY REAL example of that - that it would suddenly break something...
#146217 personal license
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC doesn't allow to make shortcut of a directory in its subdirectory

Post by *AntonyD »

Indicative silence....
#146217 personal license
Post Reply