Cornerstone.Tools.DriveInfoHelper.GetDriveInfoFromFilePath C# (CSharp) Method

GetDriveInfoFromFilePath() public static method

Gets the DriveInfo object for a given path.
public static GetDriveInfoFromFilePath ( string path ) : DriveInfo
path string
return System.IO.DriveInfo
        public static DriveInfo GetDriveInfoFromFilePath(string path)
        {
            string driveletter = path.PathToDriveletter();
            return GetDriveInfo(driveletter);
        }