mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-06-19 05:27:52 +00:00
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