Print full path, Follow links
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 5m9s

This commit is contained in:
MrLetsplay 2025-02-23 21:10:14 +01:00
parent e41e0abec8
commit 35db7e9dd8
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class VideoBase {
private static void loadLibrary() {
Path libraryPath = Path.of(config.getLibraryPath());
LOGGER.debug("Loading library from path: " + libraryPath);
LOGGER.debug("Loading library from path: " + libraryPath.toAbsolutePath());
library = Library.load(libraryPath, config.isReadOnly());
ThumbnailCreator.clearCache();
ThumbnailCreator.createThumbnails();

View File

@ -2,6 +2,7 @@ package me.mrletsplay.videobase.library;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileVisitOption;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
@ -145,7 +146,7 @@ public class Library {
}
try {
for(Path subPath : Files.walk(path, 1)
for(Path subPath : Files.walk(path, 1, FileVisitOption.FOLLOW_LINKS)
.filter(p -> path.equals(p.getParent()))
.sorted(Comparator.comparing(p -> p.getFileName().toString()))
.collect(Collectors.toList())) {