mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Remove Platform.HasSingleRootFilesystem query
This commit is contained in:
1 parent
e6c037c666
commit
527f30a013
3 files changed
+10
-11
No files matched your search
@@ -217,18 +217,12 @@ namespace System.Management.Automation
|
||||
|
||||
}
|
||||
|
||||
// Linux has a single rooted file system
|
||||
internal static bool HasSingleRootFilesystem()
|
||||
{
|
||||
return !IsWindows;
|
||||
}
|
||||
|
||||
// Linux has no notion of file shares. It has mount points
|
||||
// instead, which are subdirectories of its single-root
|
||||
// filesystem.
|
||||
internal static bool HasFileShares()
|
||||
{
|
||||
return !HasSingleRootFilesystem();
|
||||
return IsWindows();
|
||||
}
|
||||
|
||||
// Linux has no support for UNC, just mounts in a single rooted hierarchy
|
||||
|
||||
Reference in new issue
Block a user