files-community / Files

Building the best file manager for Windows
https://files.community
MIT License
33.02k stars 2.11k forks source link

Support FileFolder / Folder Shortcuts / Network Locations shortcuts #11611

Open SteffanDonal opened 1 year ago

SteffanDonal commented 1 year ago

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:

[.ShellClassInfo]
CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}
Flags=2

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:

Requirements

Files Version

2.4.49.0

Windows Version

Windows 11 22H2 22621.1265

Comments

image

Clear steps for manually creating a FileFolder:

  1. Create an empty folder.
  2. Create a shortcut to your folder destination within the folder.
  3. Create a new file named desktop.ini and paste in the content from above.
  4. Go up one level and mark the new folder as "read-only".
kkiris commented 7 months 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