Skip to content

Commit

Permalink
Update DriveHelpers.cs
Browse files Browse the repository at this point in the history
Signed-off-by: KFlab <[email protected]>
  • Loading branch information
KFlab authored Feb 15, 2025
1 parent a38a613 commit 43cc105
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Files.App/Utils/Storage/Helpers/DriveHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ public static async Task<StorageFolderWithPath> GetRootFromPathAsync(string devi
}
// Network share
else if (
( devicePath.StartsWith(@"\\", StringComparison.Ordinal) &&
( devicePath.StartsWith(@"\\", StringComparison.Ordinal) ||
GetDriveType(new SystemIO.DriveInfo(devicePath)) is DriveType.Network ) &&
!devicePath.StartsWith(@"\\SHELL\", StringComparison.Ordinal)
) ||
GetDriveType(new SystemIO.DriveInfo(devicePath)) is DriveType.Network
)
{
int lastSepIndex = rootPath.LastIndexOf(@"\", StringComparison.Ordinal);
Expand Down

0 comments on commit 43cc105

Please sign in to comment.