added wildcard into --skip switch

This commit is contained in:
2026-06-02 22:24:35 +02:00
parent 4e331d262a
commit d6118894a0
3 changed files with 132 additions and 35 deletions

View File

@ -18,6 +18,11 @@
- `2` argument/usage error
- Missing `--host`, `--user`, `--password` should still support interactive prompt mode.
- `--skip` and `--skip-delete` matching semantics should remain stable.
- Rules without wildcard characters (`*`, `?`) use legacy exact matching.
- Exact rules without slash match any path segment; exact rules with slash match a relative subpath.
- Rules containing `*` or `?` are glob patterns matched against normalized relative paths.
- Glob matching should prefer native `fnmatch()` and keep a regex fallback for platforms where it is unavailable.
- Skip patterns should be prepared once, not recompiled for every file.
- `--no-print-skip` must suppress only `SKIP` log lines, without changing skip decisions or summary counters.
- `--delete-dir` safety guard against dangerous paths (`/`, empty path, dot paths) must remain intact.