Added the first part of the new scanner - file scanner. Responsible for walking all directories and finding all files.
This commit is contained in:
parent
16498d4b40
commit
4372d09ee4
8 changed files with 381 additions and 12 deletions
25
API/DTOs/Internal/Scanner/ScannerOption.cs
Normal file
25
API/DTOs/Internal/Scanner/ScannerOption.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System.Collections.Generic;
|
||||
using API.Entities.Enums;
|
||||
|
||||
namespace API.DTOs.Internal.Scanner;
|
||||
|
||||
public sealed record ScannerOption
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of File Type Patterns to search files for. If empty, scan will abort
|
||||
/// </summary>
|
||||
public List<FileTypeGroup> FileTypePattern { get; set; } = [FileTypeGroup.Archive, FileTypeGroup.Epub, FileTypeGroup.Images, FileTypeGroup.Pdf];
|
||||
/// <summary>
|
||||
/// Folders to scan
|
||||
/// </summary>
|
||||
public List<string> FolderPaths { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Glob syntax to exclude from scan results
|
||||
/// </summary>
|
||||
public List<string> ExcludePatterns { get; set; } = [];
|
||||
/// <summary>
|
||||
/// Skip LastModified checks
|
||||
/// </summary>
|
||||
public bool ForceScan { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue