You are here

function hackedFileGroup::scan_base_path in Hacked! 7.2

Same name and namespace in other branches
  1. 6.2 includes/hacked_project.inc \hackedFileGroup::scan_base_path()

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

File

includes/hackedFileGroup.inc, line 46

Class

hackedFileGroup
Represents a group of files on the local filesystem.

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;
  }
}