License:
Version:
Version:
Author:
1 2 3 4 5 6 7 8 9 10 11 | auto scan = new FileScan; scan (".", ".d"); Stdout.formatln ("{} Folders", scan.folders.length); foreach (folder; scan.folders) Stdout.formatln ("{}", folder); Stdout.formatln ("\n{} Files", scan.files.length); foreach (file; scan.files) Stdout.formatln ("{}", file); |
1 | return (isDir || match (fp.name)); |