You are here

static function hackedFileGroup::fromDirectory in Hacked! 6.2

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

Return a new hackedFileGroup listing all files inside the given $path.

1 call to hackedFileGroup::fromDirectory()
hackedProject::hash_remote_project in includes/hacked_project.inc
Hashes the remote project downloaded earlier.

File

includes/hacked_project.inc, line 621

Class

hackedFileGroup
Represents a group of files on the local filesystem.

Code

static function fromDirectory($path) {
  $filegroup = new hackedFileGroup($path);

  // Find all the files in the path, and add them to the file group.
  $filegroup
    ->scan_base_path();
  return $filegroup;
}