This class can be used to dump and restore directories into archive files.
It can traverse a given directory recursively and build an archive with the contents of the directory files.
The class can also do the opposite, i.e, recreate the original directory structure and file contents retrieving it from a previously generated contents file. The original file owners and permissions are restored too.
The main advantage is that it's written in pure PHP and does not require any special modules/software to be installed. |