示例#1
0
 /**
  *	Этот файл или такой же находится на этом диске
  *
  *	@return	boolean
  */
 public function hasEqual()
 {
     if ($this->has() && ($path = $this->get('name'))) {
         try {
             return $this->parent_disk->resource((string) $this->get('path') . '/' . $path)->get('md5', false) === $this->get('md5');
         } catch (\Exception $exc) {
         }
     }
     return false;
 }