d-glob 0.5.0
Search file systems with glob patterns using the D programming language
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
D Glob
Search file systems with glob patterns using the D programming language
Example
import std.stdio : stdout;
import glob : glob, globRegex;
// Use glob to search by glob pattern
foreach (entry ; glob("/usr/*/python*")) {
stdout.writefln("%s", entry);
}
/*
/usr/bin/python2
/usr/bin/python2.7
/usr/bin/python3
/usr/bin/python3.5
/usr/lib/python2.7
/usr/lib/python3
/usr/lib/python3.5
*/
// Use globRegex to search by regex pattern
foreach (entry ; globRegex(`^/proc/[0-9]*$`)) {
stdout.writefln("%s", entry);
}
/*
/proc/111
/proc/245
/proc/19533
/proc/1
*/
Documentation
https://workhorsy.github.io/d-glob/0.5.0/
Generate documentation
dub --build=docs
Run unit tests
dub test
- 0.5.0 released 33 days ago
- workhorsy/d-glob
- github.com/workhorsy/d-glob
- BSL-1.0
- Copyright (c) 2017-2024 Matthew Brennan Jones
- Authors:
- Dependencies:
- none
- Versions:
-
0.5.0 2024-Nov-18 0.4.0 2018-Mar-05 0.3.0 2017-Sep-19 0.2.0 2017-Sep-11 0.1.0 2017-Sep-11 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
1 downloads this month
-
381 downloads total
-
- Score:
- 0.7
- Short URL:
- d-glob.dub.pm