Skip to content

Commit

Permalink
[#] Determine the file path when the clipboard content type is FileDrop.
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Apr 4, 2018
1 parent 65bfeb7 commit 685f841
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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
Expand All @@ -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();
Expand Down

0 comments on commit 685f841

Please sign in to comment.