1
Fork 0
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:
Adam Harald Jørgensen 2023-11-13 01:03:07 +01:00 committed by Ali Mohammad Pur
parent 0415d03b4f
commit cc157629b4
2 changed files with 12 additions and 25 deletions

View file

@ -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,