public function pathHash(string $path, int $length = 8)
    {
        return $this->_returnHash(
            sha1_file($this->_generalizeResource($path)),
            $length
        );
    }
public function pathHash(string $path, int $length = 8)
    {
        return $this->_returnHash(
            sha1_file($this->_generalizeResource($path)),
            $length
        );
    }
public function pathHash ( string $ path , int $ length = 8 ) { return $ this -> _returnHash ( sha1_file ( $ this -> _generalizeResource ( $ path ) ) , $ length ) ; }
Returns a shorten sha1 value of a file path. Fails silent

@param string $path   The path to the file
@param int    $length The length of the hash, defaults to 8

@return string | boolean
Returns a shorten sha1 value of a file path . Fails silent