How to get file path without extension in Rust?
Using the Path::with_extension("")
method gives you the full path with a possible file extension removed.
Check the Path::file_stem
method. You can find an example there. It works at least from Rust 1.6.