You are here

protected function elFinderVolumeDrupal::_scandir in elFinder file manager 8.2

Same name and namespace in other branches
  1. 6.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_scandir()
  2. 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_scandir()
  3. 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_scandir()

Return files list in directory.

@author Dmitry (dio) Levashov

Parameters

string $path dir path:

Return value

array

1 call to elFinderVolumeDrupal::_scandir()
elFinderVolumeDrupal::AddToDrupalDB in src/Controller/elFinderVolumeDrupal.php

File

src/Controller/elFinderVolumeDrupal.php, line 318
elFinder driver for Drupal filesystem.

Class

elFinderVolumeDrupal
@file

Code

protected function _scandir($path) {
  $files = array();
  foreach (scandir($path) as $name) {
    if ($name != '.' && $name != '..') {
      $files[] = $path . DIRECTORY_SEPARATOR . $name;
    }
  }
  return $files;
}