[x] When an XML is selected and the ‘Reduce…’ button pressed, the application should look inside “CalamariReports_v[CalamariVersionNumber]” for a folder named “[XMLfilenameInFullWithoutFileExtension]” (and if it doesn’t already exist, create one).
[x] Inside that folder, it should place a folder named “[YYYYMMDD-HH24MISS][X][Y]”, where the first part is the system time-stamp for folder creation (unidirectional downward from year to second, and with HH24 = hour in 24-hour format), [X] is either “SBM” in place of the current “SBM-TRUE” or “NOSBM” in place of the current “SBM-FALSE”, and [Y] is either “LINREG” in place of the current “FIT-TRUE” or “SPOTAV” in place of the current “FIT-FALSE”. (The current naming structure for folders and reports tries to use mountID as a suffix, but this is not particularly useful even when the value is not null, because there may be many XML files for any given mountID.)
[x] Place the report CSVs inside this folder. The metadata must be abbreviated for the filenames, which is pretty much impossible, so I suggest something along the lines of “[Leftmost8chars ofXMLfilename][X][Y]_[SQUID/Check…]” where the prefix elements are as described above, and [SQUID/Check…] reflects those current segments of the CSV filenames, without modification.
Per Simon B. :