Skip to content

Commit

Permalink
no more interpolating timestamp programmatically since that's done wh…
Browse files Browse the repository at this point in the history
…en deserializing yamls
  • Loading branch information
giulong committed Dec 28, 2023
1 parent 988ef93 commit c1ac086
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ public void cleanupOldReports() {
final String extension = FILE_UTILS.getExtensionOf(output);
log.info("{} testBooks to keep: {}", extension, retention.getTotal());

final Path folder = Path.of(FILE_UTILS.interpolateTimestampFrom(output)).getParent();
final File[] folderContent = folder.toFile().listFiles();
final File[] folderContent = Path
.of(output)
.getParent()
.toFile()
.listFiles();

if (folderContent == null) {
return;
Expand All @@ -53,7 +56,7 @@ public void cleanupOldReports() {
@Override
@SneakyThrows
public void doOutputFrom(final String interpolatedTemplate) {
final Path outputPath = Path.of(FILE_UTILS.interpolateTimestampFrom(output));
final Path outputPath = Path.of(output);
Files.createDirectories(outputPath.getParent());
Files.write(outputPath, interpolatedTemplate.getBytes());
}
Expand Down

0 comments on commit c1ac086

Please sign in to comment.