From 10e342e37a9ec15a131d2944da6a15356dd540d4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 7 Sep 2008 21:47:46 +0000 Subject: Made File::addDefaultDirectory(Recursive) ignore FSNodes which are not dirs / are invalid, instead of erroring out svn-id: r34430 --- common/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/file.cpp b/common/file.cpp index 11dbdb569f..bcb62f8bb4 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -114,7 +114,7 @@ void File::addDefaultDirectory(const FilesystemNode &directory) { } void File::addDefaultDirectoryRecursive(const FilesystemNode &dir, int level, const String &prefix) { - if (level <= 0) + if (level <= 0 || !dir.exists() || !dir.isDirectory()) return; FSList fslist; -- cgit v1.2.3