You are here

protected function FeedsSimplePieParser::cacheDirectory in Feeds 8.2

Returns cache directory. Creates it if it doesn't exist.

1 call to FeedsSimplePieParser::cacheDirectory()
FeedsSimplePieParser::parse in lib/Drupal/feeds/Plugin/feeds/parser/FeedsSimplePieParser.php
Implements FeedsParser::parse().

File

lib/Drupal/feeds/Plugin/feeds/parser/FeedsSimplePieParser.php, line 186
Contains FeedsSimplePieParser and related classes.

Class

FeedsSimplePieParser
Defines a CSV feed parser.

Namespace

Drupal\feeds\Plugin\feeds\parser

Code

protected function cacheDirectory() {
  $directory = 'public://simplepie';
  file_prepare_directory($dir, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
  return $directory;
}