Open SteffanDonal opened 1 year ago
These "folder shortcuts" are very useful. Microsoft hasn't documented the feature much, if at all; however, the following StackExchange links may be useful: http://superuser.com/a/639967 https://serverfault.com/a/733248
What feature or improvement do you think would benefit Files?
When creating a shortcut to a network location, Windows Explorer will create a "FileFolder". This is a read-only directory that contains a
desktop.ini
file with this content:And it also contains a regular shortcut named
target.lnk
that points to the destination.When the folder containing these two files is marked "Read-only", Explorer will treat it as a "fake symlink". The breadcrumbs will track the path navigated into this folder, but the actual locations of all items within are not modified (which IMO is the defining difference in behaviour between these weird objects and regular ol' junctions/symlinks)
As it is right now, Files does not support these folders. Instead, it will happily navigate into the folder's "real" content, ignoring the shortcut. While I appreciate this is a somewhat... esoteric shell feature in Windows, it is quite useful:
.lnk
shortcuts. In some scenarios, double-clicking a shortcut will give you an "invalid file" error rather than navigation. You must right-click and manually navigate instead of "Select"ing the shortcut.Requirements
desktop.ini
file directly within it. Note: There is no constraint on the attributes ofdesktop.ini
desktop.ini
exists, read it. If it has the CLSID0AFACED1-E828-11D1-9187-B532F1E9575D
registered under.ShellClassInfo
, check for a shortcut namedtarget.lnk
.desktop.ini
file within the target folder should then be applied to this folder.Files Version
2.4.49.0
Windows Version
Windows 11 22H2 22621.1265
Comments
Clear steps for manually creating a
FileFolder
:desktop.ini
and paste in the content from above.