Skip to content

Commit

Permalink
Remove std::filesystem::canonicalize (octoml#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
spectrometerHBH authored May 23, 2023
1 parent 7db313c commit f1dcc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/cli_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ std::optional<std::filesystem::path> FindFile(
for (const std::filesystem::path& prefix : search_paths) {
for (const std::string& name : names) {
for (const std::string& suffix : suffixes) {
std::filesystem::path path = std::filesystem::canonical(prefix / (name + suffix));
std::filesystem::path path = prefix / (name + suffix);
if (std::filesystem::exists(path) && std::filesystem::is_regular_file(path)) {
return path;
}
Expand Down

0 comments on commit f1dcc7f

Please sign in to comment.