mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Remove Platform.HasUNCSupport query
This commit is contained in:
1 parent
58fe228dc0
commit
2249afcd0a
3 files changed
+9
-20
No files matched your search
@@ -685,15 +685,11 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// <returns></returns>
|
||||
internal static string GetUNCForNetworkDrive(string driveName)
|
||||
{
|
||||
// Porting note: on systems that do not support UNC paths, the UNC equivalent is the path itself
|
||||
if (Platform.HasUNCSupport())
|
||||
{
|
||||
return WinGetUNCForNetworkDrive(driveName);
|
||||
}
|
||||
else
|
||||
{
|
||||
return driveName;
|
||||
}
|
||||
#if LINUX
|
||||
return driveName;
|
||||
#else
|
||||
return WinGetUNCForNetworkDrive(driveName);
|
||||
#endif
|
||||
}
|
||||
|
||||
private static string WinGetUNCForNetworkDrive(string driveName)
|
||||
|
||||
Reference in new issue
Block a user