Forum Discussion
vatbub
Contributor
Hi khus,
what about deleting all files from the directory prior to starting the test? Then, you should only find your newly generated report in that directory.
Greetings,
vat
khushbupatel
8 years agoOccasional Contributor
Yes that should work but they do not want me to delete files after they are generated for the final build execution during the project, they want to keep them for records or in case for troubleshooting.
Khushbu
- Colin_McCrae8 years agoCommunity Hero
You can get all the files in a directory and then check their creation date?
Assuming you'll be wanting the most recently created version ...