catch unauthorized exceptions where user is not allowed to navigate.
MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserViewModel.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserViewModel.cs
@@ -187,7 +187,11 @@ namespace WalletWasabi.Gui.ManagedDialogs
Location = path;
Items.Clear();
SelectedItems.Clear();
+
+ try
+ {
var infos = new DirectoryInfo(path).EnumerateFileSystemInfos();
+
if (!ShowHiddenFiles)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
@@ -220,9 +224,12 @@ namespace WalletWasabi.Gui.ManagedDialogs
{
DisplayName = info.Name,
Path = info.FullName,
- IsDirectory = info is DirectoryInfo
+ IsDirectory = info is DirectoryInfo,
+ Type = info is FileInfo ? info.Extension : "File Folder",
+ Size = info is FileInfo f ? f.Length : 0,
+ Modified = info.LastWriteTime
}).OrderByDescending(x => x.IsDirectory)
- .ThenBy(x => x.DisplayName, StringComparer.InvariantCultureIgnoreCase));
+ .ThenBy(x => x.DisplayName, StringComparer.InvariantCultureIgnoreCase)); ;
if (initialSelectionName != null)
{
@@ -236,6 +243,11 @@ namespace WalletWasabi.Gui.ManagedDialogs
this.RaisePropertyChanged(nameof(QuickLinksSelectedIndex));
}
+ catch(System.UnauthorizedAccessException e)
+ {
+
+ }
+ }
}
public void GoUp()

catch unauthorized exceptions where user is not allowed to navigate.