mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 18:30:15 -04:00
now accounting for hardlinks & refactored sorting
This commit is contained in:
@@ -156,7 +156,7 @@ void *thread_rgt(){
|
||||
pthread_mutex_unlock(&mutex_mid);
|
||||
|
||||
if (mid_content[selected_file_current].permissions & S_IRUSR) {
|
||||
if (file_current.file_type == FILE_TYPE_DIR || file_current.file_type == FILE_TYPE_SYMLINK) {
|
||||
if (file_current.file_type &= FILE_TYPE_DIR) {
|
||||
#if SETTINGS_UEBERZUG_IMAGE_PREVIEW != 0
|
||||
images_clear();
|
||||
#endif
|
||||
@@ -281,7 +281,7 @@ void *thread_btm(){
|
||||
unsigned long i;
|
||||
unsigned long total_dir_size = 0;
|
||||
for(i = 0; i < mid_file_count; i++) {
|
||||
if (!(mid_content[i].file_type & (FILE_TYPE_DIR | FILE_TYPE_SYMLINK))) {
|
||||
if (!(mid_content[i].file_type & (FILE_TYPE_DIR))) {
|
||||
total_dir_size += mid_content[i].file_size;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user