Example #1
0
 /**
  * This method checks to see if this bucket already exists in the directory or not.
  */
 private function bucketExists()
 {
     $path = Constants::GET_PAGES_DIRECTORY() . "/" . $this->getBucketId() . "/.bucket";
     $io = new FileIO();
     return $io->fileExists($path);
 }
 private function adminExists()
 {
     $io = new FileIO();
     $path = Constants::GET_USERS_DIRECTORY() . '/' . 'admin.usr';
     if ($io->fileExists($path)) {
         return true;
     } else {
         return false;
     }
 }