protected function createFileResource($name)
    {
        if ($this->getResource()->getPattern() && !preg_match($this->getResource()->getPattern(), $name)) {
            $this->files[$name] = 'skip';
        } else {
            $this->files[$name] = new FileResource($this->getResource()->getResource().'/'.$name);
        }
    }
protected function createFileResource($name)
    {
        if ($this->getResource()->getPattern() && !preg_match($this->getResource()->getPattern(), $name)) {
            $this->files[$name] = 'skip';
        } else {
            $this->files[$name] = new FileResource($this->getResource()->getResource().'/'.$name);
        }
    }
protected function createFileResource ( $ name ) { if ( $ this -> getResource ( ) -> getPattern ( ) && ! preg_match ( $ this -> getResource ( ) -> getPattern ( ) , $ name ) ) { $ this -> files [ $ name ] = 'skip' ; } else { $ this -> files [ $ name ] = new FileResource ( $ this -> getResource ( ) -> getResource ( ) . '/' . $ name ) ; } }
Creates new FileResource

@param string $name
Creates new FileResource