You are here

public function DirectoryOperations::directoryScan in AT Tools 8

Same name and namespace in other branches
  1. 8.3 at_theme_generator/src/File/DirectoryOperations.php \Drupal\at_theme_generator\File\DirectoryOperations::directoryScan()
  2. 8.2 at_theme_generator/src/File/DirectoryOperations.php \Drupal\at_theme_generator\File\DirectoryOperations::directoryScan()

Scan directories.

Parameters

$path:

Return value

array Files below the path. Files below the path.

1 call to DirectoryOperations::directoryScan()
DirectoryOperations::directoryGlob in at_theme_generator/src/File/DirectoryOperations.php
Recursively glob files below the path of a specified type.

File

at_theme_generator/src/File/DirectoryOperations.php, line 89
Contains \Drupal\at_theme_generator\File\DirectoryOperations

Class

DirectoryOperations

Namespace

Drupal\at_theme_generator\File

Code

public function directoryScan($path) {
  $scan_directories = array();
  if (file_exists($path)) {
    $scan_directories = preg_grep('/^([^.])/', scandir($path));
  }
  return $scan_directories;
}