Skip to content

Commit

Permalink
refs #104, fixing last half-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed Feb 22, 2021
1 parent 5c02ca3 commit 264445e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5733,7 +5733,7 @@ GHC_INLINE recursive_directory_iterator& recursive_directory_iterator::increment
bool isDir = (*this)->is_directory(ec);
bool isSymLink = !ec && (*this)->is_symlink(ec);
if(!ec) {
if (recursion_pending() && (*this)->is_directory() && (!(*this)->is_symlink() || (options() & directory_options::follow_directory_symlink) != directory_options::none)) {
if (recursion_pending() && isDir && (!isSymLink || (options() & directory_options::follow_directory_symlink) != directory_options::none)) {
_impl->_dir_iter_stack.push(directory_iterator((*this)->path(), _impl->_options, ec));
}
else {
Expand Down

0 comments on commit 264445e

Please sign in to comment.