send CSV file via REST

This commit is contained in:
2019-12-08 18:39:34 +01:00
parent f1ef13c1de
commit 85679ca0c8
12 changed files with 334 additions and 48 deletions

View File

@@ -38,6 +38,16 @@ public class FileUtils {
}
}
public static void deleteSilently(final Iterable<Path> paths) {
for (final Path path : paths) {
try {
delete(path);
} catch (final Exception e) {
LOGGER.info("failed to delete {}", path, e);
}
}
}
public static void delete(final Path path) {
final int maxAttempts = 10;