Fixed #1198 - 0.28 ignores link to script folder

This commit is contained in:
Matthias Koefferlein 2022-12-01 23:54:43 +01:00
parent 512662f3e4
commit 2178b23d8d
1 changed files with 2 additions and 1 deletions

View File

@ -422,7 +422,8 @@ void MacroCollection::scan ()
}
}
std::vector<std::string> dirs = tl::dir_entries (p, false /*with_files*/, true /*with_dirs*/, true /*without_dotfiles*/);
// NOTE: we add files to capture symlinks to directories
std::vector<std::string> dirs = tl::dir_entries (p, true /*with_files*/, true /*with_dirs*/, true /*without_dotfiles*/);
for (auto f = dirs.begin (); f != dirs.end (); ++f) {
std::string fp = tl::combine_path (p, *f);