Archive_Tar extension
| From: | Heiko Roth | Date: | Mon, 28 Mar 2005 12:03:51 +0000 |
| Subject: | Archive_Tar extension | ||
| Groups: | php.pear.qa | ||
| Request: | Send a blank email to pear-qa+get-2643@lists.php.net to get a copy of this message | ||
Hello,
I added the functionality to define a regular expression that describes files and directories that should be ignored when creating an archive with Archive_Tar. Full Downgrade compatibility.
The two new functions are:
/**
* This method sets the regular expression for ignoring files and directories
* at import, for example:
* $arch->setIgnoreRegexp("#CVS|\.svn#");
* @param string $regexp regular expression defining which files or directories to ignore* @access public */ function setIgnoreRegexp($regexp) /** * 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'));
* @param array $list a list of file or directory names to ignore* @access public */ function setIgnoreList($list) Regards, Heiko. Dipl. Inform. Geschäftsführer EGOTEC GmbH Alte Neckarelzer Straße 24 D D-74821 Mosbach Telefon +49 (0) 6261/674310 Fax +49 (0) 6261/674329 E-Mail roth@egotec.com Internet www.egocms.com PGP-ID: 0x5EA92BC7