original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Create new directory
  
  @param string $dir_path
docstring_tokens: Create new directory