cli : add /glob command (#21084)
* add /glob command * output error when max files reached * support globbing outside curdir
This commit is contained in:
parent
bf934f28db
commit
c46758d28f
4 changed files with 114 additions and 49 deletions
|
|
@ -794,6 +794,8 @@ std::string string_from(const std::vector<int> & values);
|
|||
std::string string_from(const struct llama_context * ctx, const std::vector<llama_token> & tokens);
|
||||
std::string string_from(const struct llama_context * ctx, const struct llama_batch & batch);
|
||||
|
||||
bool glob_match(const std::string & pattern, const std::string & str);
|
||||
|
||||
//
|
||||
// Filesystem utils
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue