mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-04-30 10:50:09 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.IO.Meta` builds the normal Nuget package that is used by all other projects and includes all namespaces. `SabreTools.IO` builds to `SabreTools.IO.Common` to avoid overwriting issues on publish.
19 lines
559 B
C#
19 lines
559 B
C#
using System.IO;
|
|
|
|
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) { }
|
|
}
|
|
}
|