Glob.cs
Path globbing for .NET
Install / Use
/learn @mganss/Glob.csREADME
Glob.cs
Single-source-file path globbing for .NET (netstandard2.0 and net461).
Features
- Choose case sensitivity
- Optionally match only directories
- Injectable file system implementation for easy testing (uses
System.IO.Abstractions) - Can cancel long running match
- Throw or continue on file system errors
- Optionally log errors to supplied log implementation
- Lazy tree traversal
- Option to limit depth of
**expansion
Syntax
?matches a single character*matches zero or more characters**matches zero or more recursive directories, e.g.a\**\xmatchesa\x,a\b\x,a\b\c\x, etc.[...]matches a set of characters, syntax is the same as character groups in Regex.{group1,group2,...}matches any of the pattern groups. Groups can contain groups and patterns, e.g.{a\b,{c,d}*}.
Usage
Install the NuGet package Glob.cs. Then:
var dlls = Glob.Expand(@"c:\windows\system32\**\*.dll");
Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
