mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
Shell: Expand glob to only directories if it ends with a slash
The glob "*/" should only expand to directories, and the directories should also have a trailing slash. This commit also replaces Shell::split_path with StringView::split_view since it accomplishes the same task.
This commit is contained in:
parent
0415d03b4f
commit
cc157629b4
2 changed files with 12 additions and 25 deletions
|
@ -294,7 +294,6 @@ public:
|
|||
static SpecialCharacterEscapeMode special_character_escape_mode(u32 c, EscapeMode);
|
||||
|
||||
static bool is_glob(StringView);
|
||||
static Vector<StringView> split_path(StringView);
|
||||
|
||||
enum class ExecutableOnly {
|
||||
Yes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue