Re: File_Archive adds duplicate files in compressed file!!

From: Date: Mon, 14 May 2007 04:46:48 +0000
Subject: Re: File_Archive adds duplicate files in compressed file!!
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27282@lists.php.net to get a copy of this message
Seyyed Sina Salek wrote:
Hi, i have a problem with File_Archive, it adds duplicate file into generated archive file when using a folder as source path. (it only happens if source folder has sub folders) i uses below code to convert a folder to File_Archive::setOption("gzCompressionLevel", 9); File_Archive::setOption("tmpDirectory", Cache_Folder_Path); File_Archive::extract( File_Archive::read($destPath), File_Archive::toArchive("GL2.tar.gz", File_Archive::toFiles(Cache_Folder_Path)) ); if event tried this option but nothing changed. File_Archive::setOption("appendRemoveDuplicates", tue); is it a bug? would u please tell me how can i solve it?
http://pear.php.net/bugs/bug.php?id=6546 If this patch works for you, please email Pablo Fischer and let him know! -- David Sanders shangxiao

« previous php.pear.general (#27282) next »