Adds a tool that checks archives to see if they use data descriptors instead of local entry headers for tracking entry size. It will also repack these archives if required.
19 lines
476 B
C#
19 lines
476 B
C#
using LANCommander.Server.Services;
|
|
|
|
namespace LANCommander.Server.Jobs.Background
|
|
{
|
|
public class RepackArchiveBackgroundJob
|
|
{
|
|
private readonly ArchiveService _archiveService;
|
|
|
|
public RepackArchiveBackgroundJob(ArchiveService archiveService)
|
|
{
|
|
_archiveService = archiveService;
|
|
}
|
|
|
|
public async Task Execute(Guid archiveId)
|
|
{
|
|
await _archiveService.RepackArchiveAsync(archiveId);
|
|
}
|
|
}
|
|
}
|