You are here

public function FeedsFetcherResult::getFeedsInProgressDir in Feeds 7.2

Returns directory for storing files that are in progress of import.

Return value

string The cache dir to use.

2 calls to FeedsFetcherResult::getFeedsInProgressDir()
FeedsFetcherResult::constructFilePath in plugins/FeedsFetcher.inc
Constructs file name for saving the raw data.
FeedsFetcherResult::saveRawToFile in plugins/FeedsFetcher.inc
Saves the raw fetcher result to a file.

File

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

Class

FeedsFetcherResult
Base class for all fetcher results.

Code

public function getFeedsInProgressDir() {
  $dir = variable_get('feeds_in_progress_dir', NULL);
  if ($dir) {
    return $dir;
  }
  else {
    $schemes = file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE);
    $scheme = isset($schemes['private']) ? 'private' : 'public';
    return $scheme . '://feeds/in_progress';
  }
}