]> Creatis software - gdcm.git/blobdiff - src/gdcmDirList.cxx
ENH: avoid writing illegal images with a double dots.
[gdcm.git] / src / gdcmDirList.cxx
index a777d9ea5efdee0cedcd36fc0db8c59493fe0390..005700a72a42f06499352524bad89c62a5dd9dc4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDirList.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/06/08 12:49:37 $
-  Version:   $Revision: 1.62 $
+  Date:      $Date: 2007/09/20 07:43:35 $
+  Version:   $Revision: 1.64 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -52,8 +52,7 @@ DirList::DirList(std::string const &dirName, bool recursive)
 
 /**
  * \brief Constructor  
- * @param  dirName root directory name
- * @param  recursive whether we want to explore recursively or not 
+ * @param  se DicomDirSerie we want to explore
  */
 DirList::DirList(DicomDirSerie *se)
 {
@@ -89,7 +88,8 @@ bool DirList::IsDirectory(std::string const &dirName)
    }
    else
    {
-      gdcmStaticErrorMacro( strerror(errno) );
+      gdcmStaticWarningMacro("[" << dirName << "] not found or is not a Directory");
+      //gdcmStaticErrorMacro( strerror(errno) );
       return false;
    }
 }