I'm having some trouble figuring something out.
I have a script that validates feature classes in a Topology, exports the errors, then writes a feature class for each individual dataset and geometry type for the errors.
For example if the feature class LINE came back having point and line errors two feature classes would get written (to a gdb). LINE_pointErrors and Line_lineErrors. The resulting GDB could end up having multiple feature classes for multiple data sets (i.e. LINE_pointErrors, LINE_lineErrors, LINE2_lineErrors, LINE3_pointErrors).
What I would like to do is export all of the feature classes representing the same dataset as shapefiles to a unique folder.
So, using the examples above, there would be three folders LINE, LINE2 and LINE3 and each would contain the shapefiles pertaining to that dataset (LINE would contain LINE_pointErrors and LINE_lineErrors, LINE2 would contain LINE2_lineErrors and LINE3 would contain LINE3_pointErrors).
I'm not even sure where to start. Any help would be appreciated.