feat: dont throw FileNotFound for Path endsWith assertions, add test
Check List:
- Fixes #3840
- Unit tests : YES / NO / NA
- Javadoc with a code example (on API only) : YES / NO / NA
- PR meets the contributing guidelines
Following the contributing guidelines will make it easier for us to review and accept your PR.
this is a starting implementation for issue #3840 happy to receive any feedback. thank you! Implementation for startsWith still open
Co-authored-by: Benjamin König <[email protected]>
@ky0n the two failed jobs are unrelated to your changes, you can ignore them.
can you have a look please @scordio, thank you. I tried to be as close as possible to toRealPath-Method with toAbsolutePath().normalize(), while the later will still work without the file existing. I didn't change the toRealPath(Path) method.
This is finally merged! Thanks for your efforts, @bekoenig and @ky0n!