Repository navigation
feat: show network locations already mapped by Windows - #211
Merged
Merged
Conversation
Mapped network drives (connected or remembered but disconnected) and the "Network locations" shortcuts to UNC shares are listed on Home and in This PC with the network symbol and the share. Everything is read locally (GetDriveType, WNetGetConnection, HKCU\Network, .lnk files): building Home no longer queries network volumes, favorites on the network aren't checked on the UI thread and network drives never ask the Shell for an icon. Co-Authored-By: Claude Opus 5.5 <[email protected]>
nextestudios
force-pushed
the
feature/27-network-locations
branch
from
September 27, 2026 22:44
b830787 to
fd9bed7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HKCU\Network,WNetGetConnection= ERROR_CONNECTION_UNAVAIL) show as "Rede · desconectada", never as an error; opening one lets Windows reconnect.%APPDATA%\Microsoft\Windows\Network Shortcuts, folders withtarget.lnkor loose.lnk) pointing to UNC shares are listed too (max 32, read without resolving the link on a short-lived STA thread with a 2 s timeout). WebDAV/FTP/local targets are ignored; targets go through the newNetworkPathPolicy(UNC only;\\?\,\\.\,.., invalid chars rejected).IsReady/free space on network drives (it could hang on a dead server); network drives never ask the Shell for an icon (IconRequest.For→ symbol only); favorites/recents/quick-access checks skip network paths on the UI thread (IFileSystemProvider.IsNetworkPath, UNC orGetDriveType= remote); restored tabs (feat: persist open tabs between sessions #51) still check them off the UI thread. A server is only contacted when the user opens the place (async, Back cancels). No credentials stored, no SMB stack.Tests
NetworkPathPolicyTests(accepted/rejected targets — untrusted input; network drives never request Shell icons),FavoritesJourneyTests::A_favorite_on_a_network_share_is_never_checked_on_the_ui_thread.NetworkLocationIntegrationTests—net use <letter> \\localhost\C$shows up as a network drive with its share and is browsable; a Network Shortcuts folder (temp dir) with a UNCtarget.lnkis listed and a local-target.lnkis ignored. (Skips with a reason if the runner can't map the admin share.)Closes #27
🤖 Generated with Claude Code