mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Shell: Include parent and base directories in expanded globs
This commit is contained in:
committed by
Ali Mohammad Pur
parent
cc157629b4
commit
e89ba794d0
@@ -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 {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user