Fix FileLister::RecursiveAddFiles on files without a base path.

This commit is contained in:
Nicolas Le Cam 2008-12-22 22:46:31 +00:00
parent 7fda68c662
commit d6ffc63230
1 changed files with 1 additions and 1 deletions

View File

@ -153,9 +153,9 @@ void FileLister::RecursiveAddFiles( std::vector<std::string> &filenames, const s
{ {
std::ostringstream bdir, oss; std::ostringstream bdir, oss;
oss << path; oss << path;
bdir << path;
if ( path.length() > 0 && path[path.length()-1] == '/' ) if ( path.length() > 0 && path[path.length()-1] == '/' )
{ {
bdir << path;
oss << "*"; oss << "*";
} }