DeadByDaylightBackup.Utility/FileUtility.cs
/// <summary>
/// Get a list of drives that can be searched
/// </summary>
/// <returns>Array of drives</returns>
Get a list of drives that can be searched
Get a list of drives that can be searched
public static string[] GetDrives()
        {
            System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives();
            return drives.Where(x => x.DriveType == DriveType.Fixed || x.DriveType == DriveType.Network || x.DriveType == DriveType.Removable || x.DriveType == DriveType.Ram).Select(x => x.Name)
                .Where(x => Directory.Exists(x)).ToArray();
        }
public static string [ ] GetDrives ( ) { System . IO . DriveInfo [ ] drives = System . IO . DriveInfo . GetDrives ( ) ; return drives . Where ( x => x . DriveType == DriveType . Fixed || x . DriveType == DriveType . Network || x . DriveType == DriveType . Removable || x . DriveType == DriveType . Ram ) . Select ( x => x . Name ) . Where ( x => Directory . Exists ( x ) ) . ToArray ( ) ; }
Get a list of drives that can be searched
Get a list of drives that can be searched
Array of drives
Array of drives