mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:07:35 +00:00
Shell: Include parent and base directories in expanded globs
This commit is contained in:
parent
cc157629b4
commit
e89ba794d0
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ Vector<DeprecatedString> Shell::expand_globs(Vector<StringView> path_segments, S
|
||||||
if (is_glob_directory)
|
if (is_glob_directory)
|
||||||
first_segment = first_segment.substring_view(0, first_segment.length() - 1);
|
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())
|
if (di.has_error())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue