mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-06-23 13:09:30 -04:00
18 lines
718 B
C#
18 lines
718 B
C#
using Cleanuparr.Infrastructure.Features.DownloadClient;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.DownloadCleaner.Services;
|
|
|
|
/// <summary>
|
|
/// Scans configured directories for files that aren't claimed by any active
|
|
/// torrent and moves them to a dedicated orphaned directory. Optionally
|
|
/// purges old entries from the orphaned directory.
|
|
/// </summary>
|
|
public interface IOrphanedFilesCleanupService
|
|
{
|
|
/// <summary>
|
|
/// Processes orphaned files for every enabled per-client configuration.
|
|
/// Claims are computed only for clients that have ScanDirectories configured.
|
|
/// </summary>
|
|
Task ProcessAsync(IReadOnlyList<IDownloadService> downloadServices, CancellationToken cancellationToken);
|
|
}
|