diff options
Diffstat (limited to 'src/fileinfo.cpp')
-rw-r--r-- | src/fileinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileinfo.cpp b/src/fileinfo.cpp index 7924642..fdc6b6c 100644 --- a/src/fileinfo.cpp +++ b/src/fileinfo.cpp @@ -103,13 +103,13 @@ std::string FileInfo::absFilePath() const std::string result; std::error_code ec; fs::path path(m_name); - if (fs::exists(path,ec)) + if (!path.is_relative()) { - result = fs::canonical(path,ec).string(); + result = path.lexically_normal().string(); } else { - result = (fs::current_path(ec) / m_name).string(); + result = (fs::current_path(ec) / m_name).lexically_normal().string(); } correctPath(result); return result; |