Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tar.php

function Archive_Tar::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 Archive_Tar::setIgnoreRegexp()
Archive_Tar::setIgnoreList in vendor/pear/archive_tar/Archive/Tar.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

vendor/pear/archive_tar/Archive/Tar.php, line 718

Class

Archive_Tar
Creates a (compressed) Tar archive

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal