internal FATX.IOWriter GetWriterIO() { if (DriveType == Info.DriveType.HDD) { CloseIO(); io = new IO.HDDFATX(false, null); bw = io.bw_diskWriter(DeviceID); } else if (DriveType == Info.DriveType.Backup) { CloseIO(); io = new IO.HDDFATX(true, DumpPath); bw = io.bw_dumpWriter(); } else if (DriveType == Info.DriveType.USB) { CloseIO(); System.IO.FileInfo[] fi = new System.IO.DirectoryInfo(DumpPath).GetFiles(); string[] FilePaths = new string[fi.Length]; for (int i = 0; i < FilePaths.Length; i++) { FilePaths[i] = fi[i].FullName; } bw = new IOWriter(FilePaths); } return(bw); }
public bool Open() { if (IsClosed) { io = new IO.HDDFATX(false, null); } return(true); }
internal FATX.IOReader GetIO() { CloseIO(); if (DriveType == Info.DriveType.HDD) { io = new IO.HDDFATX(false, null); br = io.br_diskReader(DeviceID); } else if (DriveType == Info.DriveType.Backup) { io = new IO.HDDFATX(true, DumpPath); br = io.br_dumpReader(); } else if (DriveType == Info.DriveType.USB) { br = new IOReader(FilePaths()); } return(br); }