Skip to content

Commit

Permalink
Cleanup recording paths Issue DSheirer#2128
Browse files Browse the repository at this point in the history
  • Loading branch information
Randesign committed Jan 20, 2025
1 parent b3cd7d7 commit 46f58f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private Path getAudioRecordingPath(IdentifierCollection identifierCollection, Re
}

StringBuilder sbFinal = new StringBuilder();
sbFinal.append(TimeStamp.getTimeStamp("_"));
sbFinal.append(TimeStamp.getTimeStamp("_")).append("_");

//Remove any illegal filename characters
String cleaned = StringUtils.replaceIllegalCharacters(sb.toString());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/dsheirer/util/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static String replaceIllegalCharacters(String filename)

for (String illegalCharacter : ILLEGAL_FILENAME_CHARACTERS)
{
filename = filename.replace(illegalCharacter, "_");
filename = filename.replace(illegalCharacter, "-");
}

return filename;
Expand Down

0 comments on commit 46f58f1

Please sign in to comment.