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:
@@ -254,7 +254,7 @@ void move_right(){
|
||||
if (mid_content->file_name[0] == '\0') {
|
||||
return;
|
||||
}
|
||||
if (mid_content[selected_file_current].file_type == FILE_TYPE_DIR || mid_content[selected_file_current].file_type == FILE_TYPE_SYMLINK) {
|
||||
if (mid_content[selected_file_current].file_type &= FILE_TYPE_DIR) {
|
||||
if (chdir(mid_content[selected_file_current].file_name) != 0) {
|
||||
FAIL("move_right", "unhandled error of chdir");
|
||||
} else {
|
||||
@@ -465,7 +465,7 @@ void delete(){
|
||||
btm_buffer = concat("deleted: ", file_str);
|
||||
} else {
|
||||
free(btm_buffer);
|
||||
if (mid_content[selected_file_current].file_type & (FILE_TYPE_SYMLINK | FILE_TYPE_DIR)) {
|
||||
if (mid_content[selected_file_current].file_type & FILE_TYPE_DIR) {
|
||||
recursive_delete(mid_content[selected_file_current]);
|
||||
}
|
||||
remove(mid_content[selected_file_current].file_name);
|
||||
|
Reference in New Issue
Block a user