コード例 #1
0
 /**
  * removes a cloned repo
  *
  *
  */
 public function removeClone()
 {
     $dir = $this->Directory();
     GeneralMethods::output_to_screen('Removing ' . $dir . ' and all its contents ...  ', "created");
     $this->gitRepo = null;
     FileSystem::removeFolder($dir);
     // removes contents but not the actual folder
     //rmdir ($dir);
     return !file_exists($dir);
 }