glob

Search file systems with glob patterns using the D programming language

See Glob https://en.wikipedia.org/wiki/Glob_(programming)

Home page: https://github.com/workhorsy/d-glob

Members

Functions

glob
string[] glob(string path_name)

Return all the paths that match the pattern

Examples

import std.stdio : stdout;
import glob : glob;

foreach (entry ; glob("/usr/*/python*")) {
	stdout.writefln("%s", entry);
}

// outputs
/*
/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
*/

Meta

Version

0.2.0

License

Boost Software License - Version 1.0