_unzip_file_ziparchive


_unzip_file_ziparchive ( $file, $to, $needed_dirs = array() )

Access:
  • private
Parameters:
  • (string) $file Full path and filename of zip archive
  • (string) $to Full path on the filesystem to extract archive to
  • (array) $needed_dirs A partial list of required folders needed to be created.
See:
Returns:
  • (mixed) WP_Error on failure, True on success
Defined at:

Description

This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the ZipArchive class.

Assumes that WP_Filesystem() has already been called and set up.

Related Functions

_unzip_file_pclzip, unzip_file, update_archived, wp_get_archives, is_archive

Top Google Results

User discussions

wpseek mobile