protected function File_Iterator::acceptPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-file-iterator/src/Iterator.php \File_Iterator::acceptPath()
@since Method available since Release 1.1.0
Parameters
string $path:
Return value
bool
1 call to File_Iterator::acceptPath()
- File_Iterator::accept in vendor/
phpunit/ php-file-iterator/ src/ Iterator.php
File
- vendor/
phpunit/ php-file-iterator/ src/ Iterator.php, line 101
Class
- File_Iterator
- FilterIterator implementation that filters files based on prefix(es) and/or suffix(es). Hidden files and files from hidden directories are also filtered.
Code
protected function acceptPath($path) {
foreach ($this->exclude as $exclude) {
if (strpos($path, $exclude) === 0) {
return FALSE;
}
}
return TRUE;
}