Files
SabreTools.IO/SabreTools.Matching/FilePathMatch.cs

19 lines
559 B
C#
Raw Permalink Normal View History

using System.IO;
2026-03-18 12:50:31 -04:00
namespace SabreTools.Matching
{
/// <summary>
/// File path matching criteria
/// </summary>
public class FilePathMatch : PathMatch
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="needle">String representing the search</param>
/// <param name="matchCase">True to match exact casing, false otherwise</param>
public FilePathMatch(string needle, bool matchCase = false)
: base($"{Path.DirectorySeparatorChar}{needle}", matchCase, true) { }
}
}