mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-31 03:45:20 -04:00
f5d0ad2ed2
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
23 lines
680 B
C#
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;
|
|
}
|