d-glob ~update_github_actions

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.4.0/

Generate documentation

dub --build=docs

Run unit tests

dub test

Dub version Dub downloads License

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
Show all 8 versions
Download Stats:
  • 0 downloads today

  • 33 downloads this week

  • 33 downloads this month

  • 380 downloads total

Score:
1.1
Short URL:
d-glob.dub.pm