Example #1
0
 private bool DriveExists(IDriveObject drive)
 {
     return(DriveInfo.GetDrives().Any(d => string.Equals(d.Name, drive.Root.Path, StringComparison.OrdinalIgnoreCase)));
 }
Example #2
0
        public bool SupportsHardLinks(IDriveObject drive)
        {
            var driveFormat = new DriveInfo(drive.Name).DriveFormat;

            return(string.Equals(driveFormat, "NTFS", StringComparison.OrdinalIgnoreCase));
        }
Example #3
0
 public bool SupportsHardLinks(IDriveObject drive)
 {
     return (bool)_supportsHardLinks[drive];
 }
Example #4
0
 public DriveType GetDriveType(IDriveObject drive)
 {
     return(new DriveInfo(drive.Name).DriveType);
 }
Example #5
0
 public DriveType GetDriveType(IDriveObject drive)
 {
     return (DriveType)_driveType[Find(drive)];
 }