Don't delete missing files

This commit is contained in:
Andrea Cavalli 2021-01-16 00:30:45 +01:00
parent ec43b167bf
commit 075bf5ad40

View File

@ -562,6 +562,9 @@ public class AsyncTdEasy {
sessionPath.resolve("thumbnails"),
sessionPath.resolve("wallpapers")
))
.filterWhen(file -> Mono
.fromCallable(() -> Files.exists(file))
.subscribeOn(Schedulers.boundedElastic()))
.doOnNext(directory -> {
try {
if (!Files.walk(directory)