added file previev
This commit is contained in:
@ -63,6 +63,8 @@ void get_dir_content(char *path, unsigned long *dir_file_count, file *dir_conten
|
||||
lstat(full_path, file);
|
||||
free(full_path);
|
||||
|
||||
dir_content[i].file_size_bytes = file->st_size;
|
||||
|
||||
if (S_ISDIR(file->st_mode)) {
|
||||
dir_content[i].file_type = FILE_TYPE_DIR;
|
||||
dir_content[i].color_pair = COLOR_DIR;
|
||||
|
Reference in New Issue
Block a user