// GetOutput construct the output directory
GetOutput construct the output directory
// GetOutput construct the output directory
func (info *FileInfo) GetOutput(output string) string {
	outputDir := filepath.Join(output, info.Collection, info.PatientID, info.StudyUID, info.Date, info.SeriesUID)
	if _, err := os.Stat(outputDir); os.IsNotExist(err) {
		if err = os.MkdirAll(outputDir, 0755); err != nil {
			log.Error().Msgf("%v, failed to create output dir", err)
		}
	}
	return outputDir
}
func ( info * FileInfo ) GetOutput ( output string ) string { outputDir := filepath . Join ( output , info . Collection , info . PatientID , info . StudyUID , info . Date , info . SeriesUID ) if _ , err := os . Stat ( outputDir ) ; os . IsNotExist ( err ) { if err = os . MkdirAll ( outputDir , 0755 ) ; err != nil { log . Error ( ) . Msgf ( " " , err ) } } return outputDir }
GetOutput construct the output directory
GetOutput construct the output directory