not delete torrents and check if folder exists
This commit is contained in:
parent
041ebff9b7
commit
896055015a
2
pom.xml
2
pom.xml
|
@ -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 -->
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue