We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c9b43 commit ae7fc0bCopy full SHA for ae7fc0b
src/Files.App/Data/Items/DriveItem.cs
@@ -252,7 +252,8 @@ public static async Task<DriveItem> CreateFromPropertiesAsync(StorageFolder root
252
ShowShellItems = true,
253
ShowProperties = true
254
};
255
- item.Path = string.IsNullOrEmpty(root.Path) ? $"\\\\?\\{root.Name}\\" : root.Path;
+ item.Path = string.IsNullOrEmpty(root.Path) && !root.Name.EndsWith('\\') ? deviceId :
256
+ (string.IsNullOrEmpty(root.Path) ? $"\\\\?\\{root.Name}\\" : root.Path);
257
item.DeviceID = deviceId;
258
item.Root = root;
259
0 commit comments