Program: gdcm
Module: $RCSfile: gdcmDirList.cxx,v $
Language: C++
- Date: $Date: 2004/07/26 19:36:56 $
- Version: $Revision: 1.18 $
+ Date: $Date: 2004/10/10 00:42:54 $
+ Version: $Revision: 1.22 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
- http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
+ http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
gdcmDirList::gdcmDirList(std::string dirName, bool recursive)
{
name = dirName;
- NormalizePath(name);
+ gdcmUtil::NormalizePath(name);
Explore(name, recursive);
}
{
int numberOfFiles = 0;
std::string fileName;
- NormalizePath(dirName);
+ gdcmUtil::NormalizePath(dirName);
#if defined(_MSC_VER) || (__CYGWIN__)
WIN32_FIND_DATA fileData;
HANDLE hFile=FindFirstFile((dirName+"*").c_str(),&fileData);
}
else
{
- this->push_back(dirName+fileName);
+ push_back(dirName+fileName);
numberOfFiles++;
}
{
fileName = dirName + d->d_name;
stat(fileName.c_str(), &buf); //really discard output ?
- if( S_ISREG(buf.st_mode) ) //is it a regular file?
+ if( S_ISREG(buf.st_mode) ) //is it a regular file?
{
- this->push_back( fileName );
+ push_back( fileName );
numberOfFiles++;
}
else if( S_ISDIR(buf.st_mode) ) //directory?