public function __construct($path) { $this->regex = '/^[\\da-f]{32}$/i'; parent::__construct(new FilesystemIterator($path), $this->regex); }