Replaced deprecated function

pull/143/head
parent 8986de36fc
commit ff11d54a80

@ -135,7 +135,7 @@ void on_web_publish_path_changed(GtkWidget *, web_publication_add_window *window
} }
if (yon_char_is_empty(path) || access(path,F_OK)) return; if (yon_char_is_empty(path) || access(path,F_OK)) return;
int size; int size;
config_str parsed = yon_dir_get_contents(path,&size); config_str parsed = yon_file_ls(path,&size);
GtkTreeIter iter; GtkTreeIter iter;
for (int i=0;i<size;i++){ for (int i=0;i<size;i++){
struct stat path_stat; struct stat path_stat;

@ -502,7 +502,7 @@ void yon_interface_update(main_window *widgets){
if (!yon_char_is_empty(repos_paths)) free(repos_paths); if (!yon_char_is_empty(repos_paths)) free(repos_paths);
if (!repos_size){ if (!repos_size){
int temp_size; int temp_size;
config_str contents = yon_dir_get_contents(path,&temp_size); config_str contents = yon_file_ls(path,&temp_size);
for (int k=0;k<temp_size;k++){ for (int k=0;k<temp_size;k++){
char *full_content_path = yon_char_unite(path,"/",contents[k],NULL); char *full_content_path = yon_char_unite(path,"/",contents[k],NULL);
if (yon_file_is_directory(full_content_path)&&strcmp(contents[k],"pool")&&strcmp(contents[k],".")&&strcmp(contents[k],"..")){ if (yon_file_is_directory(full_content_path)&&strcmp(contents[k],"pool")&&strcmp(contents[k],".")&&strcmp(contents[k],"..")){

Loading…
Cancel
Save