lib/private/Archive/TAR.php
/**
	 * rename a file or folder in the archive
	 *
	 * @param string $source
	 * @param string $dest
	 * @return bool
	 */
rename a file or folder in the archive
@param string $source
@param string $dest
@return bool
rename a file or folder in the archive @param string $source @param string $dest @return bool
function rename($source, $dest) {
		$tmp = \OCP\Files::tmpFolder();
		$this->tar->extract($tmp);
		rename($tmp . $source, $tmp . $dest);
		$this->tar = null;
		unlink($this->path);
		$types = array(null, 'gz', 'bz');
		$this->tar = new \Archive_Tar($this->path, $types[self::getTarType($this->path)]);
		$this->tar->createModify(array($tmp), '', $tmp . '/');
		$this->fileList = false;
		$this->cachedHeaders = false;
		return true;
	}
function rename ( $ source , $ dest ) { $ tmp = \ OCP \ Files :: tmpFolder ( ) ; $ this -> tar -> extract ( $ tmp ) ; rename ( $ tmp . $ source , $ tmp . $ dest ) ; $ this -> tar = null ; unlink ( $ this -> path ) ; $ types = array ( null , 'gz' , 'bz' ) ; $ this -> tar = new \ Archive_Tar ( $ this -> path , $ types [ self :: getTarType ( $ this -> path ) ] ) ; $ this -> tar -> createModify ( array ( $ tmp ) , '' , $ tmp . '/' ) ; $ this -> fileList = false ; $ this -> cachedHeaders = false ; return true ; }
rename a file or folder in the archive
 @param string $source
 @param string $dest
 @return bool
rename a file or folder in the archive @param string $source @param string $dest @return bool
//no proper way to delete, rename entire archive, rename file and remake archive