File_Archive add duplicate files in compressed file!!

From: Date: Sat, 12 May 2007 08:37:28 +0000
Subject: File_Archive add duplicate files in compressed file!!
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27276@lists.php.net to get a copy of this message
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? Regards

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