Glob fix.
This commit is contained in:
parent
6ae0070b28
commit
0eb1d93d73
4
tools.h
4
tools.h
@ -846,6 +846,10 @@ char *tool_function_directory_rglob(char *target_dir) {
|
|||||||
struct stat file_stat;
|
struct stat file_stat;
|
||||||
char mod_time[20], create_time[20];
|
char mod_time[20], create_time[20];
|
||||||
|
|
||||||
|
` if(!strcmp(target_dir, ".")) {
|
||||||
|
target_dir[0] = '*';
|
||||||
|
}
|
||||||
|
|
||||||
recursive_glob(target_dir, &results);
|
recursive_glob(target_dir, &results);
|
||||||
|
|
||||||
json_object *json_array = json_object_new_array();
|
json_object *json_array = json_object_new_array();
|
||||||
|
Loading…
Reference in New Issue
Block a user