src/php/Webforge/Common/System/File.php
public function getSha1() {
    if (!isset($this->sha1)) {
      $this->sha1 = sha1_file((string) $this);
    }
    
    return $this->sha1;
  }
public function getSha1() {
    if (!isset($this->sha1)) {
      $this->sha1 = sha1_file((string) $this);
    }
    
    return $this->sha1;
  }
public function getSha1 ( ) { if ( ! isset ( $ this -> sha1 ) ) { $ this -> sha1 = sha1_file ( ( string ) $ this ) ; } return $ this -> sha1 ; }
returns the SHA1 of the file

Attention: the file must exist
the hash is cached
@return string
returns the SHA1 of the file