From 5415537889df7ef5e25d0352df3eb3dae0bd6414 Mon Sep 17 00:00:00 2001 From: Marco Gavelli Date: Sat, 15 May 2021 21:20:33 +0200 Subject: [PATCH] Fix Box Drive enum --- Files/ViewModels/ItemViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Files/ViewModels/ItemViewModel.cs b/Files/ViewModels/ItemViewModel.cs index 14019cc7ddc0..25aded69f134 100644 --- a/Files/ViewModels/ItemViewModel.cs +++ b/Files/ViewModels/ItemViewModel.cs @@ -1143,7 +1143,8 @@ await Task.Run(async () => public async Task EnumerateItemsFromStandardFolderAsync(string path, StorageFolderWithPath storageFolderForGivenPath, Type sourcePageType, CancellationToken cancellationToken, List skipItems, bool cacheOnly = false, LibraryItem library = null) { // Flag to use FindFirstFileExFromApp or StorageFolder enumeration - bool enumFromStorageFolder = false; + bool enumFromStorageFolder = + path == App.CloudDrivesManager.Drives.FirstOrDefault(x => x.Text == "Box")?.Path?.TrimEnd('\\'); // Use storage folder for Box Drive (#4629) StorageFolder rootFolder = null; var res = await FilesystemTasks.Wrap(() => StorageFolder.GetFolderFromPathAsync(path).AsTask());