You are here

public function FeedsFetcherResult::fileExists in Feeds 7.2

Returns if the file to parse exists.

Return value

bool True if the file exists. False otherwise.

2 calls to FeedsFetcherResult::fileExists()
FeedsFetcherResult::getFileContents in plugins/FeedsFetcher.inc
Returns the contents of a file, if it exists.
FeedsFetcherResult::rawExists in plugins/FeedsFetcher.inc
Returns if raw data exists.

File

plugins/FeedsFetcher.inc, line 137
Contains the FeedsFetcher and related classes.

Class

FeedsFetcherResult
Base class for all fetcher results.

Code

public function fileExists() {
  if (!empty($this->file_path) && is_readable($this->file_path)) {
    return TRUE;
  }
  return FALSE;
}