|
|
@ -521,17 +521,17 @@ void on_inspector_open(GtkWidget *self, main_window *widgets){
|
|
|
|
int cur_size=0;
|
|
|
|
int cur_size=0;
|
|
|
|
char *cur_folder = yon_char_divide(window->journal_paths[i],yon_char_find_last(window->journal_paths[i],'/'));
|
|
|
|
char *cur_folder = yon_char_divide(window->journal_paths[i],yon_char_find_last(window->journal_paths[i],'/'));
|
|
|
|
config_str files = yon_dir_get_contents(cur_folder,&cur_size);
|
|
|
|
config_str files = yon_dir_get_contents(cur_folder,&cur_size);
|
|
|
|
yon_char_divide_search(window->journal_paths[i],"*",-1);
|
|
|
|
char *prearg = yon_char_divide_search(window->journal_paths[i],"*",-1);
|
|
|
|
for (int j=0;j<cur_size;j++){
|
|
|
|
for (int j=0;j<cur_size;j++){
|
|
|
|
if(strstr(files[j],window->journal_paths[i])){
|
|
|
|
if(strstr(files[j],window->journal_paths[i])&&strstr(files[j],prearg)){
|
|
|
|
if(!final) final = yon_char_parsed_new(&final_size,yon_char_unite(cur_folder,"/",files[j],NULL),NULL);
|
|
|
|
if(!final) final = yon_char_parsed_new(&final_size,yon_char_unite(cur_folder,"/",files[j],NULL),NULL);
|
|
|
|
final = yon_char_parsed_append(final,&final_size,yon_char_unite(cur_folder,"/",files[j],NULL));
|
|
|
|
else final = yon_char_parsed_append(final,&final_size,yon_char_unite(cur_folder,"/",files[j],NULL));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yon_char_parsed_free(files,cur_size);
|
|
|
|
yon_char_parsed_free(files,cur_size);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if(!final) final = yon_char_parsed_new(&final_size,window->journal_paths[i],NULL);
|
|
|
|
if(!final) final = yon_char_parsed_new(&final_size,window->journal_paths[i],NULL);
|
|
|
|
final = yon_char_parsed_append(final,&final_size,window->journal_paths[i]);
|
|
|
|
else final = yon_char_parsed_append(final,&final_size,window->journal_paths[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yon_char_parsed_free(window->journal_paths,window->journal_size);
|
|
|
|
yon_char_parsed_free(window->journal_paths,window->journal_size);
|
|
|
|