isaac marin - 2009-09-02 16:08:11
I'm on Linux and it's a bit crazy.When I run the script only process 19 directories with its files when there are 40 directories. I've tested tgz and zip, and both did the same result. The script runs at the root of the website (ex: /var/www/MY_WEB)
$content_path = "dir/";
include("scripts/archive.php");
$file_tgz = new gzip_file("content.tgz");
$file_tgz->set_options(array('basedir' => $content_path, 'overwrite' => 1, 'level' => 3, 'inmemory' => 0));
$file_tgz->add_files(array("*.*"));
$file_tgz->exclude_files("*.db");
$file_tgz->create_archive();
Inside of "dir" there are 40 directories with file inside of them, and when the tgz is created, I open it and only see 19 directories with its files :S
Can anyone tell me what's going on?