Shell: Include parent and base directories in expanded globs

This commit is contained in:
Adam Harald Jørgensen 2023-11-13 01:05:38 +01:00 committed by Ali Mohammad Pur
parent cc157629b4
commit e89ba794d0

View file

@ -309,7 +309,7 @@ Vector<DeprecatedString> Shell::expand_globs(Vector<StringView> path_segments, S
if (is_glob_directory)
first_segment = first_segment.substring_view(0, first_segment.length() - 1);
Core::DirIterator di(base, Core::DirIterator::SkipParentAndBaseDir);
Core::DirIterator di(base);
if (di.has_error())
return {};