1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-06-19 13:37:53 +00:00
Files
send2trash/tests/test_plat_other.py
Andrew Senetar 522bafebc8 fix: Correct is_parent() path handling
Prevent incorrect path handling in is_parent() to ensure that only actual
parent directories are matched. Before performing the substring match
it now ensures that the parent path ends with a separator, preventing incorrect
matches where a directory name is a substring of another directory name.

- Corrected matching logic
- Added explicit test for this logic and verification e2e
- Fix one use of is_parent() in tests that was relying on partially
  incorrect behavior
2026-06-16 01:55:39 +00:00

9.1 KiB