- Add more null safety - Fix possible FilePathCache race condition - Add MoveFilesToBooksDir progress reporting - All metadata is now downloaded in parallel with other post-success tasks. - Improve download resuming and file cleanup reliability - The downloader creates temp files with a UUID filename and does not insert them into the FilePathCache. Created files only receive their final file names when they are moved into the Books folder. This is to prepare for a future plan re naming templates
18 lines
461 B
C#
18 lines
461 B
C#
using FileManager;
|
|
|
|
#nullable enable
|
|
namespace AaxDecrypter;
|
|
|
|
public record TempFile
|
|
{
|
|
public LongPath FilePath { get; init; }
|
|
public string Extension { get; }
|
|
public MultiConvertFileProperties? PartProperties { get; init; }
|
|
public TempFile(LongPath filePath, string? extension = null)
|
|
{
|
|
FilePath = filePath;
|
|
extension ??= System.IO.Path.GetExtension(filePath);
|
|
Extension = FileUtility.GetStandardizedExtension(extension).ToLowerInvariant();
|
|
}
|
|
}
|