syncthing/lib/scanner
Simon Frei 605fd6d726
fix(ignore): ensure normalization of patterns and paths match (fixes #9597) (#9717)
In ignores, normalize the input when parsing it.
When scanning, normalize earlier such that the path is already
normalized when checking ignores. This requires splitting normalization
of the string from normalization of the file, as we don't want to
attempt the latter if the file is ignored.

Closes #9598

---------

Co-authored-by: Jakob Borg <jakob@kastelo.net>
2024-09-28 17:16:44 +02:00
..
blockqueue.go all: Add Prometheus-style metrics to expose some internal performance counters (fixes #5175) (#9003) 2023-08-04 19:57:30 +02:00
blocks_test.go lib/sha256: Remove it (#9643) 2024-08-10 12:58:20 +01:00
blocks.go lib/sha256: Remove it (#9643) 2024-08-10 12:58:20 +01:00
debug.go all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
doc.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
metrics.go all: Add Prometheus-style metrics to expose some internal performance counters (fixes #5175) (#9003) 2023-08-04 19:57:30 +02:00
virtualfs_test.go all: Add Prometheus-style metrics to expose some internal performance counters (fixes #5175) (#9003) 2023-08-04 19:57:30 +02:00
walk_test.go lib/sha256: Remove it (#9643) 2024-08-10 12:58:20 +01:00
walk.go fix(ignore): ensure normalization of patterns and paths match (fixes #9597) (#9717) 2024-09-28 17:16:44 +02:00