Ejemplo n.º 1
0
 /**
  * md5 checksums of 2 files
  *
  * @param  File    $file1
  * @param  File    $file2
  * @return boolean
  */
 public function isIndentical(File $file1, File $file2)
 {
     return $file1->getHash() === $file2->getHash();
 }
Ejemplo n.º 2
0
 /**
  * Remove File from Index
  *
  * @param  File   $file
  */
 public function remove(File $file)
 {
     $hash = $file->getFullPathHash();
     $this->isChanged = true;
     unset($this->files[$hash]);
 }