private bool DriveExists(IDriveObject drive) { return(DriveInfo.GetDrives().Any(d => string.Equals(d.Name, drive.Root.Path, StringComparison.OrdinalIgnoreCase))); }
public bool SupportsHardLinks(IDriveObject drive) { var driveFormat = new DriveInfo(drive.Name).DriveFormat; return(string.Equals(driveFormat, "NTFS", StringComparison.OrdinalIgnoreCase)); }
public bool SupportsHardLinks(IDriveObject drive) { return (bool)_supportsHardLinks[drive]; }
public DriveType GetDriveType(IDriveObject drive) { return(new DriveInfo(drive.Name).DriveType); }
public DriveType GetDriveType(IDriveObject drive) { return (DriveType)_driveType[Find(drive)]; }