public function ArchiveTar::setIgnoreRegexp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Archiver/ArchiveTar.php \Drupal\Core\Archiver\ArchiveTar::setIgnoreRegexp()
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:
1 call to ArchiveTar::setIgnoreRegexp()
- ArchiveTar::setIgnoreList in core/
lib/ Drupal/ Core/ Archiver/ ArchiveTar.php - This method sets the regular expression for ignoring all files and directories matching the filenames in the array list at import, for example: $arch->setIgnoreList(array('CVS', '.svn', 'bin/tool'));
File
- core/
lib/ Drupal/ Core/ Archiver/ ArchiveTar.php, line 757
Class
Namespace
Drupal\Core\ArchiverCode
public function setIgnoreRegexp($regexp) {
$this->_ignore_regexp = $regexp;
}