From 2e710be8560c6f5722fd721f68b49add95996088 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 10 Mar 2009 07:53:42 +0000 Subject: [PATCH] Unit tests: in recurseFolders, skip files/folders whose names begnis with '.'/ --- lib/simpletestlib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/simpletestlib.php b/lib/simpletestlib.php index 5532655857..196fa5f247 100644 --- a/lib/simpletestlib.php +++ b/lib/simpletestlib.php @@ -37,7 +37,8 @@ function recurseFolders($path, $callback, $fileregexp = '/.*/', $exclude = false foreach ($files as $file) { $filepath = $path .'/'. $file; - if ($file == '.' || $file == '..') { + if (strpos($file, '.') === 0) { + /// Don't check hidden files. continue; } else if (is_dir($filepath)) { if (!in_array($filepath, $ignorefolders)) { -- 2.39.5