Meziantou.Framework.Globbing
1.0.13
Prefix Reserved
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Meziantou.Framework.Globbing --version 1.0.13
NuGet\Install-Package Meziantou.Framework.Globbing -Version 1.0.13
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meziantou.Framework.Globbing" Version="1.0.13" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Meziantou.Framework.Globbing --version 1.0.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Meziantou.Framework.Globbing, 1.0.13"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Meziantou.Framework.Globbing as a Cake Addin #addin nuget:?package=Meziantou.Framework.Globbing&version=1.0.13 // Install Meziantou.Framework.Globbing as a Cake Tool #tool nuget:?package=Meziantou.Framework.Globbing&version=1.0.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Meziantou.Framework.Globbing
Supported glob features
*
matches any number of characters including none?
matches a single character[abc]
matches one character given in the bracket[!abc]
matches any character not in the brackets[a-z]
matches one character from the range given in the bracket[!a-z]
matches one character not in the range given in the bracket{abc,123}
matches one of the literals**
matches zero or more directories
Usage
Install the NuGet package Meziantou.Framework.Globbing
(NuGet)
<PackageReference Include="Meziantou.Framework.Globbing" Version="1.0.4" />
IsMatch
tests whether a file matches the glob patternGlob glob = Glob.Parse("src/**/*.txt", GlobOptions.IgnoreCase); glob.IsMatch("src/abc.txt");
Enumerate files that match a glob pattern
// Enumerate files that match the glob in the folder rootDirectory Glob glob = Glob.Parse("src/**/*.txt", GlobOptions.None); foreach(var file in glob.EnumerateFiles("rootDirectory")) { Console.WriteLine(file); }
Addition resources
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Microsoft.IO.Redist (>= 6.0.0)
- System.Memory (>= 4.5.5)
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Meziantou.Framework.Globbing:
Package | Downloads |
---|---|
Meziantou.Framework.DependencyScanning
Find dependencies in source files. Support multiple package managers such as NuGet, npm, Docker, PyPi, and so on |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.14 | 450 | 11/17/2024 |
1.0.13 | 2,904 | 11/15/2023 |
1.0.11 | 1,911 | 12/6/2021 |
1.0.10 | 372 | 10/21/2021 |
1.0.9 | 422 | 7/14/2021 |
1.0.8 | 370 | 4/22/2021 |
1.0.7 | 352 | 4/22/2021 |
1.0.6 | 335 | 4/22/2021 |
1.0.5 | 518 | 12/26/2020 |
1.0.4 | 502 | 10/23/2020 |
1.0.3 | 429 | 10/21/2020 |
1.0.2 | 436 | 10/19/2020 |
1.0.0 | 426 | 10/18/2020 |