You are here

function hackedFileGroup::compute_hashes in Hacked! 6.2

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

Hash all files listed in the file group.

File

includes/hacked_project.inc, line 652

Class

hackedFileGroup
Represents a group of files on the local filesystem.

Code

function compute_hashes() {
  foreach ($this->files as $filename) {
    $this->files_hashes[$filename] = $this->hasher
      ->hash($this->base_path . '/' . $filename);
  }
}