Skip to content

Commit

Permalink
replace : by _ in name on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Aug 5, 2023
1 parent 727fee5 commit ce67b2f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,12 @@ String getExtendedName(String name, String format)
*/
String getPartialImageName()
{
return UIUtilities.removeFileExtension(model.getImageName());
String name = model.getImageName();
if (UIUtilities.isWindowsOS()) {
// Special handling for NTFS ADS: Don't accept colon in the fileName.
name = name.replaceAll(":", "_");
}
return UIUtilities.removeFileExtension(name);
}

/**
Expand Down

0 comments on commit ce67b2f

Please sign in to comment.