src/Archive/Tar.php
function setIgnoreList($list)
    {
    	$regexp = str_replace(array('#', '.', '^', '$'), array('\#', '\.', '\^', '\$'), $list);
    	$regexp = '#/'.join('$|/', $list).'#';
    	$this->setIgnoreRegexp($regexp);
    }
function setIgnoreList($list)
    {
    	$regexp = str_replace(array('#', '.', '^', '$'), array('\#', '\.', '\^', '\$'), $list);
    	$regexp = '#/'.join('$|/', $list).'#';
    	$this->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', 'bin/tool'));

@param array $list a list of file or directory names to ignore

@access public