Log warning when library overlaps generated folder in scan (#3725)

This commit is contained in:
Robin
2023-05-09 20:04:20 -05:00
committed by GitHub
parent c77ff8989b
commit 490a2aca08

View File

@@ -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
}