Skip to content

Commit 19dc9ad

Browse files
authored
Fix: Fixed issue where folder sizes weren't shown in Recycle Bin (#12630)
1 parent cba09f4 commit 19dc9ad

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Files.App/Filesystem/Search/FolderSearch.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ private async Task<ListedItem> GetListedItemAsync(IStorageItem item)
432432
ItemDateCreatedReal = folder.DateCreated,
433433
NeedsPlaceholderGlyph = false,
434434
Opacity = 1,
435+
FileSize = props.Size.ToSizeString(),
436+
FileSizeBytes = (long)props.Size,
435437
ItemDateDeletedReal = binFolder.DateDeleted,
436438
ItemOriginalPath = binFolder.OriginalPath
437439
};

src/Files.App/Filesystem/StorageEnumerators/UniversalStorageEnumerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ public static async Task<ListedItem> AddFolderAsync(BaseStorageFolder folder, St
202202
FileImage = null,
203203
LoadFileIcon = false,
204204
ItemPath = string.IsNullOrEmpty(folder.Path) ? PathNormalization.Combine(currentStorageFolder.Path, folder.Name) : folder.Path,
205-
FileSize = null,
206-
FileSizeBytes = 0,
205+
FileSize = basicProperties.Size.ToSizeString(),
206+
FileSizeBytes = (long)basicProperties.Size,
207207
ItemDateDeletedReal = binFolder.DateDeleted,
208208
ItemOriginalPath = binFolder.OriginalPath,
209209
};

0 commit comments

Comments
 (0)