You are here

protected function elFinderVolumeDrupal::_scandir in elFinder file manager 7.2

Same name and namespace in other branches
  1. 8.2 src/Controller/elFinderVolumeDrupal.php \elFinderVolumeDrupal::_scandir()
  2. 6.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_scandir()
  3. 7.3 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::delTree in inc/elfinder.drupalfs.driver.inc
Delete dirctory trees and included files.

File

inc/elfinder.drupalfs.driver.inc, line 374
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;
}