You are here

function hackedFileGroup::scan_base_path in Hacked! 8.2

Locate all sensible files at the base path of the file group.

File

src/hackedFileGroup.php, line 51

Class

hackedFileGroup
Represents a group of files on the local filesystem.

Namespace

Drupal\hacked

Code

function scan_base_path() {
  $files = hacked_file_scan_directory($this->base_path, '/.*/', array(
    '.',
    '..',
    'CVS',
    '.svn',
    '.git',
  ));
  foreach ($files as $file) {
    $filename = str_replace($this->base_path . '/', '', $file->filename);
    $this->files[] = $filename;
  }
}