mirror of https://github.com/stashapp/stash.git
Log warning when library overlaps generated folder in scan (#3725)
This commit is contained in:
parent
c77ff8989b
commit
490a2aca08
|
@ -246,6 +246,7 @@ func newScanFilter(c *config.Instance, minModTime time.Time) *scanFilter {
|
|||
|
||||
func (f *scanFilter) Accept(ctx context.Context, path string, info fs.FileInfo) bool {
|
||||
if fsutil.IsPathInDir(f.generatedPath, path) {
|
||||
logger.Warnf("Skipping %q as it overlaps with the generated folder", path)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue