- << std::endl;
-
- currentSerieWriteDir = currentStudyWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR
- + currentSerieInstanceUID;
- systemCommand = "mkdir " + currentSerieWriteDir;
- system (systemCommand.c_str());
+ << std::endl;
+
+ if (seriedescr) // more human readable!
+ currentSerieWriteDir = currentStudyWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR
+ + currentSerieDescription + "_" + currentSerieNumber;
+ else
+ currentSerieWriteDir = currentStudyWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR
+ + currentSerieInstanceUID;
+
+ systemCommand = "mkdir " + currentSerieWriteDir;
+
+ if (listonly)
+ std::cout << "[" << systemCommand << "]" << std::endl;
+ else
+ system (systemCommand.c_str());