12 namespace Symfony\Component\Finder\Iterator;
55 $this->baseDirLength = strlen(
$baseDir);
57 parent::__construct($paths);
66 public function __call($name, array $arguments)
68 return call_user_func_array(array($this->
current(), $name), $arguments);
86 return $this->
current->getPathname();
119 $absolutePath = parent::current();
121 if ($this->baseDir === substr($absolutePath, 0, $this->baseDirLength)) {
122 $this->subPathname = ltrim(substr($absolutePath, $this->baseDirLength),
'/\\');
123 $dir = dirname($this->subPathname);
124 $this->subPath =
'.' === $dir ?
'' : $dir;
126 $this->subPath = $this->subPathname =
'';
129 $this->
current =
new SplFileInfo(parent::current(), $this->subPath, $this->subPathname);