diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs index a427a0a42..80c99ab9f 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs @@ -151,7 +151,7 @@ public partial class PreviewPanel : UserControl, INotifyPropertyChanged var directoryInfo = new DirectoryInfo(folderPath); long size = 0; var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(3)); - foreach (var file in directoryInfo.GetFiles("*", SearchOption.AllDirectories)) + foreach (var file in directoryInfo.EnumerateFiles("*", SearchOption.AllDirectories)) { if (cancellationTokenSource.Token.IsCancellationRequested) {