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.
file:///<driver>:/path/to/file_or_dir
1 parent 0a6b1fa commit 3232e6fCopy full SHA for 3232e6f
src/Models/Remote.cs
@@ -51,8 +51,16 @@ public static bool IsValidURL(string url)
51
}
52
53
var localPath = url;
54
- if (url.StartsWith("file://", StringComparison.Ordinal))
55
- localPath = url.Substring(7);
+ if (OperatingSystem.IsWindows())
+ {
56
+ if (url.StartsWith("file:///", StringComparison.Ordinal))
57
+ localPath = url.Substring(8);
58
+ }
59
+ else
60
61
+ if (url.StartsWith("file://", StringComparison.Ordinal))
62
+ localPath = url.Substring(7);
63
64
65
return Directory.Exists(localPath);
66
0 commit comments