I already have code that can iterate through the files once they have been renamed 0.xml, 1.xml, 2.xml etc.
var promises = [];
for (i = 0; i < numberOfFiles; i++) {
promises.push(xmlPromise('data/sequence/xml/'+i+'.xml'));
}
However, if possible, I would like to keep the original names and iterate through (20180828-110359.369_I01_0000905_wt_calib.ppm3_croped.xml, 20180828-110359.436_I01_0000907_wt_calib.ppm3_croped.xml etc.)