Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/Files.App/Services/Storage/StorageNetworkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ public sealed partial class NetworkService : ObservableObject, INetworkService

private readonly static string guid = "::{f02c1a0d-be21-4350-88b0-7367fc96ef3c}";

// Virtual disk path prefixes that don't work with Windows networking APIs
private readonly static string[] VirtualDiskPrefixes =
[
@"\\RaiDrive-",
@"\\cryptomator-vault\",
@"\\EgnyteDrive\"
];


private ObservableCollection<IFolder> _Computers = [];
/// <inheritdoc/>
Expand Down Expand Up @@ -227,6 +235,13 @@ public async Task<bool> AuthenticateNetworkShare(string path)

}

// Skip authentication for virtual disk shares
// These providers create virtual disk paths that don't work with Windows networking APIs
if (VirtualDiskPrefixes.Any(prefix => path.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)))
{
return true;
}

fixed (char* lpcPath = path)
netRes.lpRemoteName = new PWSTR(lpcPath);
}
Expand Down
Loading