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:
4
dir.c
4
dir.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user