1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-21 18:30:15 -04:00

improvenments to random sort

This commit is contained in:
nova
2025-08-29 22:42:46 +02:00
parent 9f3042ccac
commit 5afabfb412
3 changed files with 22 additions and 49 deletions

4
dir.c
View File

@@ -51,9 +51,9 @@ unsigned long get_dir_size(char *path){
void get_dir_content(char *path, unsigned long *dir_file_count, file *dir_content){
struct dirent **entry;
if (file_modifiers & FILE_MODIFIERS_HIDDEN_FILES) { /* print hidden files */
scandir(path, &entry, skip_dot, alphasort);
scandir(path, &entry, skip_dot, NULL);
} else {
scandir(path, &entry, skip_hidden_files, alphasort);
scandir(path, &entry, skip_hidden_files, NULL);
}
unsigned long i = 0;