public function DirectoryOperations::directoryScan in AT Tools 8.2
Same name and namespace in other branches
- 8.3 at_theme_generator/src/File/DirectoryOperations.php \Drupal\at_theme_generator\File\DirectoryOperations::directoryScan()
- 8 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
Namespace
Drupal\at_theme_generator\FileCode
public function directoryScan($path) {
$scan_directories = [];
if (file_exists($path)) {
$scan_directories = preg_grep('/^([^.])/', scandir($path));
}
return $scan_directories;
}