From 7f3555a009046f394fbf5d04e47aade6e0ad8866 Mon Sep 17 00:00:00 2001 From: Sophie Kirschner Date: Wed, 15 Feb 2017 17:11:12 -0500 Subject: [PATCH] Fixed issue with mach.io.file.traverse unittest It was failing because git wasn't committing empty directories. duh. I feel dumb --- mach/io/file/traverse.d | 1 + mach/io/file/traverse/dir/nesteddir/deep.txt/deeper.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 mach/io/file/traverse/dir/nesteddir/deep.txt/deeper.txt diff --git a/mach/io/file/traverse.d b/mach/io/file/traverse.d index 4b8c1d9..1b4f128 100644 --- a/mach/io/file/traverse.d +++ b/mach/io/file/traverse.d @@ -385,6 +385,7 @@ unittest{ Entry(TestPath ~ "/dir/d.txt"), Entry(TestPath ~ "/dir/nesteddir", true), Entry(TestPath ~ "/dir/nesteddir/deep.txt", true), + Entry(TestPath ~ "/dir/nesteddir/deep.txt/deeper.txt", false), ]; void TestTraverse(TraverseDirMode mode)(){ auto files = traversedir!mode(TestPath).asarray; diff --git a/mach/io/file/traverse/dir/nesteddir/deep.txt/deeper.txt b/mach/io/file/traverse/dir/nesteddir/deep.txt/deeper.txt new file mode 100644 index 0000000..b6fc4c6 --- /dev/null +++ b/mach/io/file/traverse/dir/nesteddir/deep.txt/deeper.txt @@ -0,0 +1 @@ +hello \ No newline at end of file