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();