mirror of
https://github.com/SabreTools/SabreTools.Matching.git
synced 2026-07-09 02:16:09 +00:00
19 lines
565 B
C#
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) { }
|
|
}
|
|
}
|