Cornerstone.Tools.DriveInfoHelper.GetDriveInfoFromFilePath C# (CSharp) Méthode

GetDriveInfoFromFilePath() public static méthode

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