feat(util/lean_path): normalize path in function dirname
This commit is contained in:
parent
ee4255eb3d
commit
e3ac1f66e0
1 changed files with 2 additions and 0 deletions
|
@ -255,6 +255,8 @@ void display_path(std::ostream & out, std::string const & fname) {
|
|||
std::string dirname(char const * fname) {
|
||||
if (fname == nullptr)
|
||||
return ".";
|
||||
std::string nfname = normalize_path(std::string(fname));
|
||||
fname = nfname.c_str();
|
||||
unsigned i = 0;
|
||||
unsigned last_sep = 0;
|
||||
bool found_sep = false;
|
||||
|
|
Loading…
Reference in a new issue