/** * Returns an inputstream for a given name, or NULL * * @param string $name * @return io.streams.InputStream */ protected function inputStreamFor($name) { $f = new File($this->base, $name); return $f->exists() ? $f->in() : null; }