mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-04-23 22:55:05 +00:00
Add and use FilePathMatch (fixes #262)
This commit is contained in:
18
BinaryObjectScanner.Matching/FilePathMatch.cs
Normal file
18
BinaryObjectScanner.Matching/FilePathMatch.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.IO;
|
||||
|
||||
namespace BinaryObjectScanner.Matching
|
||||
{
|
||||
/// <summary>
|
||||
/// File path matching criteria
|
||||
/// </summary>
|
||||
public class FilePathMatch : PathMatch
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="needle">String representing the search</param>
|
||||
/// <param name="matchExact">True to match exact casing, false otherwise</param>
|
||||
/// <param name="useEndsWith">True to match the end only, false for all contents</param>
|
||||
public FilePathMatch(string needle) : base($"{Path.DirectorySeparatorChar}{needle}", false, true) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user