1

What is the difference between the classes ArchiverTar and Archive_Tar? Which one is a Drupal module supposed to use?

5

The Archive_Tar class is a very-slightly modified version of the PEAR library Archive_Tar. ArchiverTar can be thought of as a wrapper to that library. However, depending on what your module is trying to achieve, you will probably want to call archiver_get_archiver(), since this is agnostic of the specific archive format (the system module supplies tar and zip, and your module could provide additional formats using hook_archiver_info()).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.