private FileItem CreateFileItem(string directoryPath, string fileName, int size, int attributes, DateTime date) { var fileEntry = string.Format("{0},{1},{2},{3},{4},{5}", directoryPath, fileName, size, attributes, FatDateTime.ConvertFromDateTimeToDateInt(date), FatDateTime.ConvertFromDateTimeToTimeInt(date)); return(new FileItem(fileEntry, directoryPath)); }
private void TestImportBase( string directoryPath, string fileName, long size, bool isFile, DateTime date, bool isImported = true) { var fileEntry = string.Format("{0},{1},{2},{3},{4},{5}", directoryPath, fileName, size, (isFile ? 32 : 16), FatDateTime.ConvertFromDateTimeToDateInt(date), FatDateTime.ConvertFromDateTimeToTimeInt(date)); TestImportBase(fileEntry, directoryPath, directoryPath, fileName, size, date, isImported); }