C# Class Cornerstone.Tools.DriveInfoHelper

Mostra file Open project: damienhaynes/moving-pictures

Public Methods

Method Description
GetDriveInfo ( string drive ) : DriveInfo

Gets the DriveInfo object for the given driveletter When the object was created before it will be returned from cache.

GetDriveInfoFromFilePath ( string path ) : DriveInfo

Gets the DriveInfo object for a given path.

Method Details

GetDriveInfo() public static method

Gets the DriveInfo object for the given driveletter When the object was created before it will be returned from cache.
public static GetDriveInfo ( string drive ) : DriveInfo
drive string
return System.IO.DriveInfo

GetDriveInfoFromFilePath() public static method

Gets the DriveInfo object for a given path.
public static GetDriveInfoFromFilePath ( string path ) : DriveInfo
path string
return System.IO.DriveInfo