/* Returns: TRUE if the close operation has finished successfully.  */
gboolean g_file_enumerator_close_finish(GFileEnumerator *enumerator, GAsyncResult *result, GError **error)
/* Returns: TRUE if the close operation has finished successfully.  */
gboolean g_file_enumerator_close_finish(GFileEnumerator *enumerator, GAsyncResult *result, GError **error)
{
  GFileEnumeratorClass *class;
  g_return_val_if_fail (G_IS_FILE_ENUMERATOR (enumerator), FALSE);
  g_return_val_if_fail (G_IS_ASYNC_RESULT (result), FALSE);
  if (g_async_result_legacy_propagate_error (result, error))
    return FALSE;
  else if (g_async_result_is_tagged (result, g_file_enumerator_close_async))
    return g_task_propagate_boolean (G_TASK (result), error);
  class = G_FILE_ENUMERATOR_GET_CLASS (enumerator);
  return class->close_finish (enumerator, result, error);
}