* @return bool | * @return bool | ||||
*/ | */ | ||||
public function hasUpdated($path, $time) { | public function hasUpdated($path, $time) { | ||||
return $this->filemtime($path) > $time; | |||||
if ($this->file_exists($path)) { | |||||
return $this->filemtime($path) > $time; | |||||
} else { | |||||
return true; | |||||
} | |||||
} | } | ||||
/** | /** |