Skip to content

Commit

Permalink
Fix bug where padding adds spaces to filenames (close #70)
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Sep 26, 2023
1 parent 8a43293 commit 8ee5b8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ object RotatingSink {
in.through(forAsync[F].writeAll(catDir.resolve(s"${prefix}_${pad(idx)}$suffix"), Flags.Write))
}

private def pad(idx: Int): String = f"$idx%10d"
private def pad(idx: Int): String = f"$idx%04d"
}

0 comments on commit 8ee5b8e

Please sign in to comment.