std::string FilesFromDirectory::NormalizePath(std::string const &pathname)
{
#ifdef _WIN32
- const char FILESEPARATOR = '\\;
+ const char FILESEPARATOR = '\\';
#else
const char FILESEPARATOR = '/';
#endif
}
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?
{