Added the first part of the new scanner - file scanner. Responsible for walking all directories and finding all files.

This commit is contained in:
Joseph Milazzo 2025-05-08 16:49:33 -05:00
parent 16498d4b40
commit 4372d09ee4
8 changed files with 381 additions and 12 deletions

View 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; }
}