]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdFilesFromDirectory.cxx
BUG Files Directory
[bbtk.git] / packages / std / src / bbstdFilesFromDirectory.cxx
index d7c747e660d7e3638f77a9a100168d92c12dcceb..e91ef23898cf5190eccc0aebbf930ab8c315c42a 100644 (file)
@@ -52,7 +52,7 @@ void FilesFromDirectory::bbUserDestructor()
 std::string FilesFromDirectory::NormalizePath(std::string const &pathname)
 {
 #ifdef _WIN32
-   const char FILESEPARATOR = '\\;
+   const char FILESEPARATOR = '\\';
 #else
    const char FILESEPARATOR = '/';
 #endif
@@ -145,8 +145,11 @@ int FilesFromDirectory::Explore(std::string const &dirpath, bool recursive)
       }
       if ( S_ISREG(buf.st_mode) )    //is it a regular file?
       {
-         Filenames.push_back( fileName );
-         numberOfFiles++;
+                 if ( d->d_name[0]!='.')
+                 {     
+              Filenames.push_back( fileName );
+              numberOfFiles++;
+                 }
       }
       else if ( S_ISDIR(buf.st_mode) ) //directory?
       {