1
0
Fork 0

not delete torrents and check if folder exists

This commit is contained in:
Xavier Fontanet 2024-05-24 19:43:32 +02:00
parent 041ebff9b7
commit 896055015a
2 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,7 @@
<dependency>
<groupId>tv.mangrana</groupId>
<artifactId>mangrana-commons</artifactId>
<version>7.1.2</version>
<version>7.1.3</version>
</dependency>
<!-- needed for runtime -->

View File

@ -58,6 +58,10 @@ class FailedImportFixer {
}
private List<Path> getVideoFilesFrom(Path path) throws IOException {
if (!Files.exists(path)) {
System.out.printf("path %s doesn't exist on the filesystem", path);
return List.of();
}
System.out.println("going to explore "+path);
try (var pathsWalk = Files.walk(path, 3)) {
return pathsWalk