feat: add French localization and fix --one-file-system tests for rm
- Added French translation for skipping directories on different devices message in rm
- Refactored one-file-system test to separate into Linux and macOS specific versions using proper mounting techniques (mount --bind for Linux, hdiutil for macOS) to ensure accurate testing across platforms
This improves cross-platform reliability for the rm --one-file-system option.
8c1ca94
1 month ago
by mattsu2020
0%
refactor(rm): extract next_parent_dev_id calculation to avoid duplication
Extract the calculation of `next_parent_dev_id` out of the `safe_remove_dir_recursive` call and the fallback path to eliminate code duplication and improve readability in the `remove_dir_recursive` function. This ensures the logic is defined once and reused, while maintaining the same behavior across Unix and non-Unix platforms.