Files
SabreTools.Matching/SabreTools.Matching/Paths/FilePathMatch.cs
2025-07-23 10:00:50 -04:00

19 lines
565 B
C#

using System.IO;
namespace SabreTools.Matching.Paths
{
/// <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) { }
}
}