You are here

public function FeedsHTTPCache::getFileList in Feeds 7.2

Returns a list of file names in the cache directory.

Return value

array A list of files.

1 call to FeedsHTTPCache::getFileList()
FeedsHTTPCache::startSync in includes/FeedsHTTPCache.inc
Queues all files to be synced with the cache list.

File

includes/FeedsHTTPCache.inc, line 57
Contains FeedsHTTPCache class.

Class

FeedsHTTPCache
Cache implementation for the Feeds HTTP cache.

Code

public function getFileList() {
  $files = array();
  $file_cache_dir = $this
    ->getCacheDir();
  if (is_dir($file_cache_dir)) {
    $dir = dir($file_cache_dir);
    while (($entry = $dir
      ->read()) !== FALSE) {
      if ($entry == '.' || $entry == '..') {
        continue;
      }
      $files[] = $entry;
    }
    $dir
      ->close();
  }
  return $files;
}