- Notifications
You must be signed in to change notification settings - Fork23
A C# Glob library for .NET and .NET Core.
License
NotificationsYou must be signed in to change notification settings
kthompson/glob
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A C# Glob library for .NET and .NET Core.
A glob is a pattern-matching syntax that shells use. Like when you dorm *.cs, the*.cs is a glob.
See:http://en.wikipedia.org/wiki/Glob_(programming) for more info.
- Windows
- Macintosh OS X (Darwin)
- Linux
| Pattern | Description |
|---|---|
| * | matches any number of characters including none, excluding directory seperator |
| ? | matches a single character |
| [abc] | matches one character in the brackets |
| [!abc] | matches any character not in the brackets |
| ** | match zero or more directories |
| {abc,123} | comma delimited set of literals, matched 'abc' or '123' |
varglob=newGlob("**/bin");varmatch=glob.IsMatch(@"C:\files\bin\");
varmatch=Glob.IsMatch(@"C:\files\bin\","**/bin");
string[]matchingFiles=Glob.Files(@"C:\files\bin\","**/bin").ToArray();
string[]matchingDirectories=Glob.Directories(@"C:\files\bin\","**/bin").ToArray();
Enumerate through all matching directories recursively.
- pattern: String
varroot=newDirectoryInfo(@"C:\");varallBinFolders=root.GlobDirectories("**/bin");
Enumerate through all matching files recursively.
- pattern: String
varroot=newDirectoryInfo(@"C:\");varallDllFiles=root.GlobFiles("**/*.dll");
Enumerate through all matching files and folders recursively.
- pattern: String
varroot=newDirectoryInfo(@"C:\");varallInfoFilesAndFolders=root.GlobFileSystemInfos("**/*info");
About
A C# Glob library for .NET and .NET Core.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.