Dev2.Runtime.Configuration.ComponentModel.ComputerDrive.GetDirectoryPath C# (CSharp) Method

GetDirectoryPath() private method

private GetDirectoryPath ( ComputerDrive drive ) : string
drive ComputerDrive
return string
        private string GetDirectoryPath(ComputerDrive drive)
        {
            if(drive.Parent == null || string.IsNullOrWhiteSpace(drive.Parent.Title))
                return drive.Title;

            return drive.Title.Insert(0, CreateFullTitle(drive.Parent) + "\\");
        }