mirror of
https://github.com/stashapp/stash.git
synced 2026-02-08 16:31:52 +01:00
Remove unnecessary file exclusion
This commit is contained in:
parent
7851a5884f
commit
5e56d17cb3
1 changed files with 0 additions and 5 deletions
|
|
@ -40,11 +40,6 @@ func NewStashIgnoreFilter() *StashIgnoreFilter {
|
|||
// The libraryRoot parameter bounds the search for .stashignore files -
|
||||
// only directories within the library root are checked.
|
||||
func (f *StashIgnoreFilter) Accept(ctx context.Context, path string, info fs.FileInfo, libraryRoot string) bool {
|
||||
// Always accept .stashignore files themselves so they can be read.
|
||||
if filepath.Base(path) == stashIgnoreFilename {
|
||||
return true
|
||||
}
|
||||
|
||||
// If no library root provided, accept the file (safety fallback).
|
||||
if libraryRoot == "" {
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in a new issue