From 0eb1d93d736b164c0c627118aa2383c9438f90d9 Mon Sep 17 00:00:00 2001 From: retoor <retoor@molodetz.nl> Date: Mon, 7 Apr 2025 10:24:11 +0200 Subject: [PATCH] Glob fix. --- tools.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools.h b/tools.h index dfd96be..1267b71 100644 --- a/tools.h +++ b/tools.h @@ -846,6 +846,10 @@ char *tool_function_directory_rglob(char *target_dir) { struct stat file_stat; char mod_time[20], create_time[20]; +` if(!strcmp(target_dir, ".")) { + target_dir[0] = '*'; + } + recursive_glob(target_dir, &results); json_object *json_array = json_object_new_array();