mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
GDirectoryModel: Include directories in total byte count
I don't know what's really right or wrong here. It seems fine to also include the directories in the total byte count, and it makes it a bit easier to stay consistent when adding up size numbers elsewhere.
This commit is contained in:
@@ -317,8 +317,7 @@ void GDirectoryModel::update()
|
||||
auto& entries = S_ISDIR(st.st_mode) ? m_directories : m_files;
|
||||
entries.append(move(entry));
|
||||
|
||||
if (S_ISREG(entry.mode))
|
||||
m_bytes_in_files += st.st_size;
|
||||
m_bytes_in_files += st.st_size;
|
||||
}
|
||||
|
||||
did_update();
|
||||
|
||||
Reference in New Issue
Block a user