From 685f841d148096d1e10df1bcbbeca7bc91d02802 Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Wed, 4 Apr 2018 23:58:03 +0800 Subject: [PATCH] [#] Determine the file path when the clipboard content type is FileDrop. --- PasteEx/Core/Processor/FileProcessor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PasteEx/Core/Processor/FileProcessor.cs b/PasteEx/Core/Processor/FileProcessor.cs index aad055a..9efc58e 100644 --- a/PasteEx/Core/Processor/FileProcessor.cs +++ b/PasteEx/Core/Processor/FileProcessor.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Text; using System.Windows.Forms; namespace PasteEx.Core @@ -22,7 +21,7 @@ public override string[] Analyze() { if (filePaths.Length == 1) { - if (!String.IsNullOrEmpty(filePaths[0])) + if (!String.IsNullOrEmpty(filePaths[0]) && File.Exists(filePaths[0])) { Data.Storage.SetData(DataFormats.FileDrop, Data.IAcquisition.GetData(DataFormats.FileDrop)); extensions.Clear();