So I have this folder structure.
The MainFolder (let’s call it level 0) has any number of folders (Folder1, Folder2…). The names are not in any sequence.
At level 1 (i.e. inside each folder) there is a ‘summary’ DTA file (xyz.DTA) in the case shown but the name of this file changes randomly across folders. At level1 there is also a subfolder (SUBFOLDER). This subfolder has the same name in all the other folders.
At level2 there is are two more DTA files (CHARGE.DTA and DISCHARGE.DTA). Again these names are consistent in the other folders too.
The DTA files are basically text files that are tab delimited.
I want to combine all the summary files (the ones at level1) in parallel. And I want to do the same with the CHARGE files and the DISCHARGE files.
I am looking into how to loop through subfolders but if anyone knows a similar problem that I can appropriate for my needs that could save time.
Thanks in Advance.
The MainFolder (let’s call it level 0) has any number of folders (Folder1, Folder2…). The names are not in any sequence.
At level 1 (i.e. inside each folder) there is a ‘summary’ DTA file (xyz.DTA) in the case shown but the name of this file changes randomly across folders. At level1 there is also a subfolder (SUBFOLDER). This subfolder has the same name in all the other folders.
At level2 there is are two more DTA files (CHARGE.DTA and DISCHARGE.DTA). Again these names are consistent in the other folders too.
The DTA files are basically text files that are tab delimited.
I want to combine all the summary files (the ones at level1) in parallel. And I want to do the same with the CHARGE files and the DISCHARGE files.
I am looking into how to loop through subfolders but if anyone knows a similar problem that I can appropriate for my needs that could save time.
Thanks in Advance.