Remove trailing spaces in filenames
FAT does not support trailing spaces, so we must remove them
This commit is contained in:
parent
498d8dbf1e
commit
1e58e41ba7
|
@ -24,7 +24,7 @@ public class FileNameGenerator {
|
|||
for (int i = 0; i < string.length(); i++) {
|
||||
char c = string.charAt(i);
|
||||
if (Arrays.binarySearch(ILLEGAL_CHARACTERS, c) < 0) {
|
||||
builder.append(c);
|
||||
builder.append(c).replaceFirst(" *$","");
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
|
|
Loading…
Reference in New Issue