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>
|
<dependency>
|
||||||
<groupId>tv.mangrana</groupId>
|
<groupId>tv.mangrana</groupId>
|
||||||
<artifactId>mangrana-commons</artifactId>
|
<artifactId>mangrana-commons</artifactId>
|
||||||
<version>7.1.2</version>
|
<version>7.1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- needed for runtime -->
|
<!-- needed for runtime -->
|
||||||
|
|
|
@ -58,6 +58,10 @@ class FailedImportFixer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Path> getVideoFilesFrom(Path path) throws IOException {
|
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);
|
System.out.println("going to explore "+path);
|
||||||
try (var pathsWalk = Files.walk(path, 3)) {
|
try (var pathsWalk = Files.walk(path, 3)) {
|
||||||
return pathsWalk
|
return pathsWalk
|
||||||
|
|
Loading…
Reference in New Issue