public function makeDir($dir_path)
    {
        $fm = new Filesystem();
        if (!file_exists($dir_path)) {
            $fm->mkdir($dir_path, 0755);
        } else {
            $this->getFileManager()
                ->throwError("Cannot create directory '" . $dir_path . "': Directory already exists", 500);
        }
    }
public function makeDir($dir_path)
    {
        $fm = new Filesystem();
        if (!file_exists($dir_path)) {
            $fm->mkdir($dir_path, 0755);
        } else {
            $this->getFileManager()
                ->throwError("Cannot create directory '" . $dir_path . "': Directory already exists", 500);
        }
    }
public function makeDir ( $ dir_path ) { $ fm = new Filesystem ( ) ; if ( ! file_exists ( $ dir_path ) ) { $ fm -> mkdir ( $ dir_path , 0755 ) ; } else { $ this -> getFileManager ( ) -> throwError ( "Cannot create directory '" . $ dir_path . "': Directory already exists" , 500 ) ; } }
Create new directory

@param string $dir_path
Create new directory