| 239 | |
| 240 | |
| 241 | std::string getAbsolute(const std::string& path) { |
| 242 | try { |
| 243 | return fs::absolute(fs::u8path(path)).generic_u8string(); |
| 244 | } |
| 245 | catch (fs::filesystem_error& e) { |
| 246 | return ""; |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | |
| 251 | std::string getCanonical(const std::string& path) { |