[FileMetaDataProvider] Show item count also for empty directories
ClosedPublic

Authored by bruns on Apr 29 2019, 10:40 PM.

Details

Summary

In case only one dir is selected, its item count is show, both for empty
and non-empty directories. When multiple directories are selected, the
summed count was only shown when at least one was non-empty.

Test Plan
  1. Select one empty directory - "Size: 0 items"
  2. Select multiple non-empty directories - "Total Size: xxx items"

3a. Old: Select multiple empty directories - "Total Size" not shown
3b. New: Select multiple empty directories - "Total Size: 0 items"

Diff Detail

Repository
R824 Baloo Widgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Apr 29 2019, 10:40 PM
Restricted Application added a project: Baloo. · View Herald TranscriptApr 29 2019, 10:40 PM
bruns requested review of this revision.Apr 29 2019, 10:40 PM
ngraham accepted this revision.Apr 30 2019, 11:57 AM
This revision is now accepted and ready to land.Apr 30 2019, 11:57 AM
This revision was automatically updated to reflect the committed changes.