You are here

function hackedFileGroup::compute_hashes in Hacked! 7.2

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

Hash all files listed in the file group.

File

includes/hackedFileGroup.inc, line 63

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