@@ -433,7 +433,6 @@ public async Task<bool> OpenPath(string path, FilesystemItemType? itemType = nul
433
433
string previousDir = AssociatedInstance . FilesystemViewModel . WorkingDirectory ;
434
434
bool isHiddenItem = NativeFileOperationsHelper . HasFileAttribute ( path , System . IO . FileAttributes . Hidden ) ;
435
435
bool isShortcutItem = path . EndsWith ( ".lnk" ) || path . EndsWith ( ".url" ) ; // Determine
436
- bool fileExists = await StorageItemHelpers . Exists ( path , AssociatedInstance ) ;
437
436
FilesystemResult opened = ( FilesystemResult ) false ;
438
437
439
438
// Shortcut item variables
@@ -443,11 +442,6 @@ public async Task<bool> OpenPath(string path, FilesystemItemType? itemType = nul
443
442
bool shortcutRunAsAdmin = false ;
444
443
bool shortcutIsFolder = false ;
445
444
446
- if ( ! fileExists && ! isShortcutItem && ! isHiddenItem )
447
- {
448
- return false ;
449
- }
450
-
451
445
if ( itemType == null || isShortcutItem || isHiddenItem )
452
446
{
453
447
if ( isShortcutItem )
@@ -688,7 +682,9 @@ private async void OpenSelectedItems(bool openViaApplicationPicker = false)
688
682
689
683
foreach ( ListedItem item in AssociatedInstance . ContentPage . SelectedItems )
690
684
{
691
- await OpenPath ( item . ItemPath , null , false , openViaApplicationPicker ) ;
685
+ var type = item . PrimaryItemAttribute == StorageItemTypes . Folder ?
686
+ FilesystemItemType . Directory : FilesystemItemType . File ;
687
+ await OpenPath ( item . ItemPath , type , false , openViaApplicationPicker ) ;
692
688
}
693
689
}
694
690
0 commit comments