Serviio library scan stops on error
I've been a long time user and Serviio (thank you so much Petr for this awesome software!). I've recently noticed that the library doesn't keep itself updated so I searched the forums and then my logs and I think I found the issue.
I have one question and one request (bug fix).
1. Bug or Feature request - Serviio shouldn't stop scanning the library when it encounters an error with a file or folder. For example if the file or folder permissions isn't correct or there's a special character (like I seen with other posts on this forum), it would nice to have Serviio encasulate these errors in a try/catch or something similar and then move onto the next file or folder. Windows is always FOS and things happen from bad sectors to corrupt files to incorrect permissions and it would be nice it Serviio handled these gracefully. In my case below the logs show that there's a folder which seems to be giving Serviio grief and then it just stops there rather than moving onto the next file/folder.
2. Question - From my logs Serviio seems to be stuck on some directory called .sz_perm_chk. I can't seem to find any such file or directory in the folder. I'm on Windows 8.1. I've used windows explorer with display hidden/system files, I've searched it using a command prompt using the dir /ah and dir /as switches to look for hidden or system files/folders and there's no such file or folder. It appears that windows is returning this folder to Serviio when it asks windows to walk the directory but I can't see it, so my question is how do I locate this folder? (and as mentioned in point 1 it would be great if Serviio just skipped such errors and moved onto the next file or folder).
- Code:
2020-11-25 09:44:11,120 WARN [FileDeltaWatcher] There was an error while adding files from directory E:\English\.sz_perm_chk
java.nio.file.AccessDeniedException: E:\English\.sz_perm_chk
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsDirectoryStream.<init>(WindowsDirectoryStream.java:86)
at sun.nio.fs.WindowsFileSystemProvider.newDirectoryStream(WindowsFileSystemProvider.java:518)
at java.nio.file.Files.newDirectoryStream(Files.java:457)
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
at java.nio.file.Files.walkFileTree(Files.java:2662)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.serviio.library.local.indexing.watching.FileDeltaWatcher.addAllFilesInFolder(FileDeltaWatcher.java:322)
at org.serviio.library.local.indexing.watching.FileDeltaWatcher.access$5(FileDeltaWatcher.java:319)
at org.serviio.library.local.indexing.watching.FileDeltaWatcher$FileDeltaWatcherWorker.lambda$0(FileDeltaWatcher.java:447)
at java.util.Optional.ifPresent(Optional.java:159)
at org.serviio.library.local.indexing.watching.FileDeltaWatcher$FileDeltaWatcherWorker.run(FileDeltaWatcher.java:419)
at java.lang.Thread.run(Thread.java:748)