- }
-
- if ( verbose )
- std::cout << "-------------------------- Directory [" << dirName << "] parsed" << std::endl;
-
-// Since files may be help in a Directory tree-like structure
-// we should have to duplicate this structure.
-// No time to code that stuff
-// --> We 'AnonymizeNoLoad' (overwrite the files)
-
-// Do not remove the commented out lines.
-// They will be usefull in a further program.
-/*
- std::string systemCommand;
-
- std::cout << "Check for output directory :[" << outputDirName << "]."
- <<std::endl;
- if ( ! gdcm::DirList::IsDirectory(outputDirName) ) // dirout not found
- {
- std::string strDirNameout(outputDirName); // to please gcc 4
- systemCommand = "mkdir " +strDirNameout; // create it!
- if (verbose)
- std::cout << systemCommand << std::endl;
- system (systemCommand.c_str());
- if ( ! gdcm::DirList::IsDirectory(outputDirName) ) // be sure it worked
- {
- std::cout << "KO : not a dir : [" << outputDirName << "] (creation failure ?)" << std::endl;
- exit(0);
- }
- else
- {
- std::cout << "Directory [" << outputDirName << "] created." << std::endl;
- }
- }
- else
- {
- std::cout << "Output Directory [" << outputDirName << "] already exists; Used as is." << std::endl;