I’m looking to get pointed in the right direction for this problem. I have two data sets with identical directory structures, sub directories, and the same name for data files underneath with different values in the data files. The difference between them is that each directory has a different time stamp, and the values in the data files are different.
What I want to do is pick two Data.txt files in the two directories at the same time then process them and move on to other sub directories until each time stamp directory is finished. Are there any libraries that could help manage this process or does anyone have any ideas that could help?
TimeStamp 1
General Directory
subdirectories
Data.txt
TimeStamp 2
General Directory
subdirectories
Data.txt
I would use File.listFiles() to traverse each directory and call directories recursively to process sub-directories. You can use File.lastModified() to get the modification date of a file