public function copy($source, $destination, $override = false)
    {
        if (is_dir($destination) && !is_dir($source)) {
            $destination = rtrim($destination, '/') . '/' . basename($source);
        }
        $this->fs->copy($source, $destination, $override);
    }
public function copy($source, $destination, $override = false)
    {
        if (is_dir($destination) && !is_dir($source)) {
            $destination = rtrim($destination, '/') . '/' . basename($source);
        }
        $this->fs->copy($source, $destination, $override);
    }
public function copy ( $ source , $ destination , $ override = false ) { if ( is_dir ( $ destination ) && ! is_dir ( $ source ) ) { $ destination = rtrim ( $ destination , '/' ) . '/' . basename ( $ source ) ; } $ this -> fs -> copy ( $ source , $ destination , $ override ) ; }
Copy a file, if it is newer than the destination.

@param string $source
@param string $destination
@param bool   $override
Copy a file if it is newer than the destination .