update io::path::normalized()

This commit is contained in:
MihailRis
2025-02-05 14:56:45 +03:00
parent 596132ebe2
commit b1740bf7eb
3 changed files with 63 additions and 23 deletions
+1 -7
View File
@@ -115,13 +115,7 @@ namespace io {
}
/// @brief Get parent path
path parent() const {
size_t slashpos = str.rfind('/');
if (slashpos == std::string::npos) {
return colonPos == std::string::npos ? "" : str;
}
return str.substr(0, slashpos);
}
path parent() const;
path normalized() const;