mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-22 06:50:32 -04:00
* Hooked in a server setting to enable/disable folder watching * Validated the file rename change event * Validated delete file works * Tweaked some logic to determine if a change occurs on a folder or a file. * Added a note for an upcoming branch * Some minor changes in the loop that just shift where code runs. * Implemented ScanFolder api * Ensure we restart watchers when we modify a library folder. * Fixed a unit test
18 lines
457 B
C#
18 lines
457 B
C#
namespace API.DTOs;
|
|
|
|
/// <summary>
|
|
/// DTO for requesting a folder to be scanned
|
|
/// </summary>
|
|
public class ScanFolderDto
|
|
{
|
|
/// <summary>
|
|
/// Api key for a user with Admin permissions
|
|
/// </summary>
|
|
public string ApiKey { get; set; }
|
|
/// <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; }
|
|
}
|