d-glob 0.4.0

Search file systems with glob patterns using the D programming language


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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:
  • Matthew Brennan Jones <matthew.brennan.jones@gmail.com>
Dependencies:
none
Versions:
0.4.0 2018-Mar-05
0.3.0 2017-Sep-19
0.2.0 2017-Sep-11
0.1.0 2017-Sep-11
~master 2018-Mar-05
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 1 downloads this month

  • 37 downloads total

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