public function Archive_Tar::setIgnoreRegexp

public Archive_Tar::setIgnoreRegexp($regexp)

This method sets the regular expression for ignoring files and directories at import, for example: $arch->setIgnoreRegexp("#CVS|\.svn#");

Parameters

string $regexp regular expression defining which files or directories to ignore:

File

modules/system/system.tar.inc, line 760

Class

Archive_Tar

Code

public function setIgnoreRegexp($regexp) 
 {
  $this->_ignore_regexp = $regexp;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.tar.inc/function/Archive_Tar::setIgnoreRegexp/7.x