Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Don't check system drive info for *nix default drive #427

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@ protected override bool ItemExists(string path)

protected override PSDriveInfo NewDrive(PSDriveInfo drive)
{
// The special drive for *nix systems is always valid
if (drive.Name == FallbackDriveName &&
drive.Root == System.IO.Path.GetPathRoot(Environment.CurrentDirectory))
{
return drive;
}

try
{
var driveInfo = new System.IO.DriveInfo(System.IO.Path.GetPathRoot(drive.Root));
Expand Down