fix #1025 exportdir failed to create document

fix #254 illegal filename characters
This commit is contained in:
Peter Storch
2021-11-25 20:55:46 +01:00
parent 2eab7425f2
commit bb7efaa87c
6 changed files with 41 additions and 15 deletions
@@ -100,7 +100,7 @@ public class ExportUtils {
}
private static String getExportFileNameForTrack(Track track, String trackFileFormatExtension) {
return track.getUuid().toString().substring(0, 8) + "_" + track.getName() + "." + trackFileFormatExtension;
return track.getUuid().toString().substring(0, 8) + "_" + FileUtils.sanitizeFileName(track.getName()) + "." + trackFileFormatExtension;
}
private static Uri findFile(Context context, Uri directoryUri, String exportFileName) {