public function requireDirectory($path = null)
    {
        if ( ! is_null($path))
        {
            return $this->directory($path)->requireDirectory();
        }

        if ($iterator = $this->iterateDirectory($this->path))
        {
            return $this->processRequire($iterator);
        }

        return $this;
    }
public function requireDirectory($path = null)
    {
        if ( ! is_null($path))
        {
            return $this->directory($path)->requireDirectory();
        }

        if ($iterator = $this->iterateDirectory($this->path))
        {
            return $this->processRequire($iterator);
        }

        return $this;
    }
public function requireDirectory ( $ path = null ) { if ( ! is_null ( $ path ) ) { return $ this -> directory ( $ path ) -> requireDirectory ( ) ; } if ( $ iterator = $ this -> iterateDirectory ( $ this -> path ) ) { return $ this -> processRequire ( $ iterator ) ; } return $ this ; }
Require a directory.

@param  string  $path
@return \Basset\Directory
Require a directory .