Skip to content

Instantly share code, notes, and snippets.

@run-dlang
Created May 2, 2019 07:06
Show Gist options
  • Save run-dlang/2d14f8453f4e539009788f5cd9d87060 to your computer and use it in GitHub Desktop.
Save run-dlang/2d14f8453f4e539009788f5cd9d87060 to your computer and use it in GitHub Desktop.
Code shared from run.dlang.io.
import std;
void main()
{
"%-(%s\n%)"
.writefln(
"/sandbox/.dub/packages".dirEntries(SpanMode.shallow)
.filter!(d => d.isDir)
.map!(d => d.baseName)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment