Skip to content

Commit

Permalink
update(Storage): Do not move file position when rename it, just when …
Browse files Browse the repository at this point in the history
…upload new files (#1710)
  • Loading branch information
lgmarchi authored Jan 16, 2024
1 parent 1573a54 commit 26940a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ fn get_items_from_current_directory(
.filter_map(|item| item.get_file().ok())
.collect::<Vec<_>>();

directories.sort_by_key(|b| std::cmp::Reverse(b.modified()));
files.sort_by_key(|b| std::cmp::Reverse(b.modified()));
directories.sort_by_key(|b| std::cmp::Reverse(b.creation()));
files.sort_by_key(|b| std::cmp::Reverse(b.creation()));

let max_size = warp_storage.max_size();
let current_size = warp_storage.current_size();
Expand Down

0 comments on commit 26940a6

Please sign in to comment.