Repository: files-community/Files
File: src/Files.App/ViewModels/ShellViewModel.cs (C#)

Code before:
									await fileListCache.AddDisplayName(item.ItemPath, matchingStorageFolder.DisplayName);
									if (folderSettings.DirectorySortOption == SortOption.Name && !isLoadingItems)
									{
										await OrderFilesAndFoldersAsync();
										await ApplyFilesAndFoldersChangesAsync();
									}
								}

								cts.Token.ThrowIfCancellationRequested();
								var syncStatus = await CheckCloudDriveSyncStatusAsync(matchingStorageFolder);
								var fileFRN = await FileTagsHelper.GetFileFRN(matchingStorageFolder);
								var fileTag = FileTagsHelper.ReadFileTag(item.ItemPath);
								var itemType = (item.ItemType == Strings.Folder.GetLocalizedResource()) ? item.ItemType : matchingStorageFolder.DisplayType;
								var extraProperties = await GetExtraProperties(matchingStorageFolder);

								cts.Token.ThrowIfCancellationRequested();

								await dispatcherQueue.EnqueueOrInvokeAsync(() =>
								{
									item.FolderRelativeId = matchingStorageFolder.FolderRelativeId;
									item.ItemType = itemType;
									item.SyncStatusUI = CloudDriveSyncStatusUI.FromCloudDriveSyncStatus(syncStatus);
									item.FileFRN = fileFRN;
									item.FileTags = fileTag;
									
									if (itemType.Equals("Generic hierarchical", StringComparison.Ordinal) && extraProperties is not null && extraProperties.Result["System.Capacity"] is not null && extraProperties.Result["System.FreeSpace"] is not null)
									{
										var maxSpace = ByteSize.FromBytes((ulong)extraProperties.Result["System.Capacity"]);
										var freeSpace = ByteSize.FromBytes((ulong)extraProperties.Result["System.FreeSpace"]);

										item.MaxSpace = maxSpace;
										item.SpaceUsed = maxSpace - freeSpace;
										item.FileSize = string.Format(Strings.DriveFreeSpaceAndCapacity.GetLocalizedResource(), freeSpace.ToSizeString(), maxSpace.ToSizeString());
										item.IsGenericHierarchicalDrive = true;
									}
									else
										item.ContextualProperty = $"{Strings.Modified.GetLocalizedResource()}: {item.ItemDateModified}";
								},
								Microsoft.UI.Dispatching.DispatcherQueuePriority.Low);

								SetFileTag(item);
								wasSyncStatusLoaded = true;
							}
						}
					}

					if (loadGroupHeaderInfo && isFileTypeGroupMode)
						groupImage = await GetItemTypeGroupIcon(item, matchingStorageFile);
				}
				catch (Exception)
				{

Review comment (suggestion):
This `if` works only when system (not Files's one) language is set to English. `ItemType` is translated by Windows

Code after:
									});
									await fileListCache.AddDisplayName(item.ItemPath, matchingStorageFolder.DisplayName);
									if (folderSettings.DirectorySortOption == SortOption.Name && !isLoadingItems)
									{
										await OrderFilesAndFoldersAsync();
										await ApplyFilesAndFoldersChangesAsync();
									}
								}

								cts.Token.ThrowIfCancellationRequested();
								var syncStatus = await CheckCloudDriveSyncStatusAsync(matchingStorageFolder);
								var fileFRN = await FileTagsHelper.GetFileFRN(matchingStorageFolder);
								var fileTag = FileTagsHelper.ReadFileTag(item.ItemPath);
								var itemType = (item.ItemType == Strings.Folder.GetLocalizedResource()) ? item.ItemType : matchingStorageFolder.DisplayType;
								var extraProperties = await GetExtraProperties(matchingStorageFolder);

								cts.Token.ThrowIfCancellationRequested();

								await dispatcherQueue.EnqueueOrInvokeAsync(() =>
								{
									item.FolderRelativeId = matchingStorageFolder.FolderRelativeId;
									item.ItemType = itemType;
									item.SyncStatusUI = CloudDriveSyncStatusUI.FromCloudDriveSyncStatus(syncStatus);
									item.FileFRN = fileFRN;
									item.FileTags = fileTag;

									if (extraProperties is not null)
									{
										// Drive Storage Details
										if (extraProperties.Result["System.SFGAOFlags"] is uint attributesRaw &&
											extraProperties.Result["System.Capacity"] is ulong capacityRaw &&
											extraProperties.Result["System.FreeSpace"] is ulong freeSpaceRaw &&
											((SFGAO_FLAGS)attributesRaw).HasFlag(SFGAO_FLAGS.SFGAO_REMOVABLE) &&
											!((SFGAO_FLAGS)attributesRaw).HasFlag(SFGAO_FLAGS.SFGAO_FILESYSTEM))
										{
											var maxSpace = ByteSize.FromBytes(capacityRaw);
											var freeSpace = ByteSize.FromBytes(freeSpaceRaw);

											item.MaxSpace = maxSpace;
											item.SpaceUsed = maxSpace - freeSpace;
											item.FileSize = string.Format(Strings.DriveFreeSpaceAndCapacity.GetLocalizedResource(), freeSpace.ToSizeString(), maxSpace.ToSizeString());
											item.ShowDriveStorageDetails = true;
										}

									}
									else
									{
										item.ContextualProperty = $"{Strings.Modified.GetLocalizedResource()}: {item.ItemDateModified}";
									}
								},
								Microsoft.UI.Dispatching.DispatcherQueuePriority.Low);