mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:09:05 +00:00
V2 Ignore Directories plus trailing slash
Updated ignore dirs feature to allow trailing slashes in .photoviewignore file(s). Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
This commit is contained in:
@@ -101,7 +101,7 @@ func findAlbumsForUser(db *gorm.DB, user *models.User, album_cache *AlbumScanner
|
||||
|
||||
// Skip this dir if in ignore list
|
||||
ignorePaths := ignore.CompileIgnoreLines(albumIgnore...)
|
||||
if (ignorePaths.MatchesPath(albumPath)) {
|
||||
if (ignorePaths.MatchesPath(albumPath + "/")) {
|
||||
log.Printf("Skip, directroy %s is in ignore file", albumPath)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user