diff --git a/app/Lib/AudioFileScanner/AudioFileScanner.php b/app/Lib/AudioFileScanner/AudioFileScanner.php index ffb99d5..dcdbe7d 100644 --- a/app/Lib/AudioFileScanner/AudioFileScanner.php +++ b/app/Lib/AudioFileScanner/AudioFileScanner.php @@ -56,7 +56,8 @@ public function scan($new = true, $orphans = false, $outdated = false, $batch = $directory = new Folder($directory); // Skip symlinks to avoid infinite loops - if (is_link($directory->path)) { + // Skip dotfiles to avoid scanning "hidden" directories + if (is_link($directory->path) || preg_match('/^.*\/\..*$/', $directory->path) === 1) { continue; }