예제 #1
0
 /**
  * 
  * Replacement for rmdir() to supress warnings and throw exceptions in 
  * their place.
  * 
  * @param string $path The directory path to remove
  * 
  * @return bool True on success; throws exception on failure.
  * 
  * @see [[php::rmdir() | ]]
  * 
  */
 public static function rmdir($path)
 {
     $result = @rmdir($path);
     if (!$result) {
         $info = error_get_last();
         $info['rmdir_path'] = $path;
         throw Solar_Dir::_exception('ERR_RMDIR_FAILED', $info);
     } else {
         return true;
     }
 }