Added filter for .filename files

This commit is contained in:
Robert Osfield 2009-09-07 12:51:00 +00:00
parent 8f16d2d9a5
commit b2a3d84d08

View File

@ -113,8 +113,15 @@ class ReaderWriterDICOM : public osgDB::ReaderWriter
itr != contents.end(); itr != contents.end();
++itr) ++itr)
{ {
if ((*itr).empty()) continue;
if ((*itr)[0]=='.')
{
osg::notify(osg::NOTICE)<<"Ignoring tempory file "<<*itr<<std::endl;
continue;
}
std::string localFile = path + "/" + *itr; std::string localFile = path + "/" + *itr;
info()<<"contents = "<<localFile<<std::endl;
if (acceptsExtension(osgDB::getLowerCaseFileExtension(localFile)) && if (acceptsExtension(osgDB::getLowerCaseFileExtension(localFile)) &&
osgDB::fileType(localFile) == osgDB::REGULAR_FILE) osgDB::fileType(localFile) == osgDB::REGULAR_FILE)
{ {