mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 09:35:33 -04:00
epee: string_tools: keep full path in cut_off_extension
This commit is contained in:
parent
c51ca53daa
commit
89ad8ac8b1
2 changed files with 8 additions and 1 deletions
|
@ -189,7 +189,7 @@ namespace string_tools
|
|||
//----------------------------------------------------------------------------
|
||||
std::string cut_off_extension(const std::string& str)
|
||||
{
|
||||
return boost::filesystem::path(str).stem().string();
|
||||
return boost::filesystem::path(str).replace_extension("").string();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue