mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
switch from Platform.IsLinux to Not Platform.IsWindows
This commit is contained in:
1 parent
1b1858cf09
commit
70884879df
1 file changed
+4
-4
@@ -3562,14 +3562,14 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
bool shouldRecurse = Recurse;
|
||||
bool linuxLink = false;
|
||||
bool treatAsFile = false;
|
||||
try
|
||||
{
|
||||
System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(providerPath);
|
||||
if (Platform.IsLinux && di != null && (di.Attributes & System.IO.FileAttributes.ReparsePoint) != 0)
|
||||
if (!Platform.IsWindows && di != null && (di.Attributes & System.IO.FileAttributes.ReparsePoint) != 0)
|
||||
{
|
||||
shouldRecurse = false;
|
||||
linuxLink = true;
|
||||
treatAsFile = true;
|
||||
}
|
||||
}
|
||||
catch (System.IO.FileNotFoundException)
|
||||
@@ -3577,7 +3577,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
// not a directory
|
||||
}
|
||||
|
||||
if (!linuxLink && !Recurse && hasChildren)
|
||||
if (!treatAsFile && !Recurse && hasChildren)
|
||||
{
|
||||
// Get the localized prompt string
|
||||
|
||||
|
||||
Reference in new issue
Block a user