You are here

public function PHPVideoToolkit::moveLog in Video 7.2

Same name and namespace in other branches
  1. 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::moveLog()

Moves the current log file to another file.

@access public

Parameters

$destination string The absolute path of the new filename for the log.:

Return value

boolean Returns the result of the log file rename.

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3351
Libary to access FFmpeg

Class

PHPVideoToolkit

Code

public function moveLog($destination) {
  $result = FALSE;
  if ($this->_log_file !== NULL && is_file($this->_log_file)) {
    if (is_file($destination)) {
      unlink($destination);
    }
    $result = rename($this->_log_file, $destination);
    $this->_log_file = $destination;
  }
  return $result;
}