Function rcpputils::fs::remove_extension
Defined in File filesystem_helper.hpp
Function Documentation
-
path rcpputils::fs::remove_extension(const path &file_path, int n_times = 1)
Remove extension(s) from a path.
An extension is defined as text starting from the end of a path to the first period (.) character.
- Parameters:
file_path – [in] The file path string.
n_times – [in] The number of extensions to remove if there are multiple extensions.
- Returns:
The path object.