Kavita/API/DTOs/ScanFolderDto.cs
Joe Milazzo f5d0ad2ed2
Koreader Progress Sync for all files (#4323)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
2026-01-04 11:17:56 -08:00

23 lines
680 B
C#

namespace API.DTOs;
/// <summary>
/// DTO for requesting a folder to be scanned
/// </summary>
public sealed record ScanFolderDto
{
/// <summary>
/// Api key for a user with Admin permissions
/// </summary>
public string ApiKey { get; set; } = default!;
/// <summary>
/// Folder Path to Scan
/// </summary>
/// <remarks>JSON cannot accept /, so you may need to use // escaping on paths</remarks>
public string FolderPath { get; set; } = default!;
/// <summary>
/// If true, only runs the scan if a matches series is found. I.e. prevent library scans
/// </summary>
public bool AbortOnNoSeriesMatch { get; set; } = false;
}