Print full path, Follow links
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 5m9s
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 5m9s
This commit is contained in:
parent
e41e0abec8
commit
35db7e9dd8
@ -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();
|
||||
|
@ -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())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user