From bfc82f29eb8f79c1f62af7a2455106aede31770e Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sat, 17 Jan 2009 19:34:11 +0000 Subject: [PATCH] Does not understand . as current folder (Trac #4) --- src/filelister.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/filelister.cpp b/src/filelister.cpp index 1ed60d883..7038670bb 100644 --- a/src/filelister.cpp +++ b/src/filelister.cpp @@ -157,10 +157,18 @@ void FileLister::RecursiveAddFiles(std::vector &filenames, const st { std::ostringstream bdir, oss; oss << path; - if (path.length() > 0 && path[path.length()-1] == '/') + if (path.length() > 0) { - bdir << path; - oss << "*"; + // Windows doesn't recognize "." as current folder by default + if (path == ".") + { + oss << "/*"; + } + else if (path[path.length() - 1] == '/') + { + bdir << path; + oss << "*"; + } } WIN32_FIND_DATA ffd;