Bugfix: export was not checking properly if file exists.

Fixes #1283.
This commit is contained in:
Dennis Guse
2022-06-14 18:30:42 +02:00
parent f956e7fab3
commit cecc586868
3 changed files with 8 additions and 71 deletions
@@ -85,12 +85,6 @@ public class ExportUtils {
}
}
public static boolean isExportFileExists(UUID uuuid, String trackFileFormatExtension, List<String> filesName) {
String word = uuuid.toString().substring(0, 8) + ".*\\." + trackFileFormatExtension;
Pattern pattern = Pattern.compile(word);
return filesName.stream().anyMatch(w -> pattern.matcher(w).matches());
}
public static List<String> getAllFiles(Context context, Uri directoryUri) {
List<String> fileNames = new ArrayList<>();
final ContentResolver resolver = context.getContentResolver();