public function addDirectory($name, $mode = 0777) {
        if (is_null($name)) {
            return $this;
        }
        $dir = $this->getChild($name);
        if (!is_dir($dir)) {
            mkdir($dir, $mode);
        }
        return new Directory($dir);
    }
public function addDirectory($name, $mode = 0777) {
        if (is_null($name)) {
            return $this;
        }
        $dir = $this->getChild($name);
        if (!is_dir($dir)) {
            mkdir($dir, $mode);
        }
        return new Directory($dir);
    }
public function addDirectory ( $ name , $ mode = 0777 ) { if ( is_null ( $ name ) ) { return $ this ; } $ dir = $ this -> getChild ( $ name ) ; if ( ! is_dir ( $ dir ) ) { mkdir ( $ dir , $ mode ) ; } return new Directory ( $ dir ) ; }
ADD DIRECTORY IN DIRECTORY
@param string $name
@param int $mode
@return Directory
ADD DIRECTORY IN DIRECTORY