here is the scrip that is broke
<?php
require 'ezc/Base/ezc_bootstrap.php';
date_default_timezone_set( "UTC" );
unlink( 'my_archive.zip' );
$archive = ezcArchive::open( "my_archive.zip", ezcArchive::ZIP );
$archive->truncate();
$files = ezcBaseFile::findRecursive( 'ez.app' . DIRECTORY_SEPARATOR . 'htdocs', array(), array( '@.svn@' ) );
foreach ( $files as $file )
{
echo $file."\n";
}
echo "\n\n";
$archive->appendToCurrent( $files, 'ez.app' . DIRECTORY_SEPARATOR . 'htdocs' . DIRECTORY_SEPARATOR );
?>
and here is one that works
<?php
require 'ezc/Base/ezc_bootstrap.php';
date_default_timezone_set( "UTC" );
unlink( 'my_archive.zip' );
$archive = ezcArchive::open( "my_archive.zip", ezcArchive::ZIP );
$archive->truncate();
$files = ezcBaseFile::findRecursive( 'ez.app' . DIRECTORY_SEPARATOR . 'htdocs', array(), array( '@.svn@' ) );
foreach ( $files as $file )
{
echo $file."\n";
$archive->appendToCurrent( $file, 'ez.app' . DIRECTORY_SEPARATOR . 'htdocs' . DIRECTORY_SEPARATOR );
}
echo "\n\n";
?>