Skip to content

Commit

Permalink
Fix builtins path usage
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumsheep committed Aug 12, 2020
1 parent 8ed826b commit 332d8ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/grammar/Visitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ class Visitor
{
for (const auto &p : fs::recursive_directory_iterator(this->builtins_path, fs::directory_options::follow_directory_symlink | fs::directory_options::skip_permission_denied))
{
if (!p.is_directory())
const auto &path = p.path();

if (!fs::is_directory(path))
{
this->from_file(p.path());
this->from_file(path.u8string());
}
}
}
Expand Down

0 comments on commit 332d8ac

Please sign in to comment.