You are here

function hackedFileGroup::scan_base_path in Hacked! 6.2

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

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

File

includes/hacked_project.inc, line 641

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