From ddf9ddf51b1e7461b64c84882c48cd185dd765fe Mon Sep 17 00:00:00 2001
From: Pavel Karoukin <pavel@karoukin.us>
Date: Tue, 2 Oct 2012 22:46:57 -0400
Subject: [PATCH] Issue #1801680 by pavel.karoukin: Re-download remote file if
 local copy was removed.

---
 plugins/FeedsFetcher.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/FeedsFetcher.inc b/plugins/FeedsFetcher.inc
index 4bba44d..c9f447c 100644
--- a/plugins/FeedsFetcher.inc
+++ b/plugins/FeedsFetcher.inc
@@ -43,7 +43,7 @@ class FeedsFetcherResult extends FeedsResult {
    *   If an unexpected problem occurred.
    */
   public function getFilePath() {
-    if (!isset($this->file_path)) {
+    if (!isset($this->file_path) || !file_exists($this->file_path)) {
       $destination = 'public://feeds';
       if (!file_prepare_directory($destination, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {
         throw new Exception(t('Feeds directory either cannot be created or is not writable.'));
-- 
1.7.8.2
