#include <glib.h>
#include <gio/gio.h>

gint
main (gint argc, gchar **argv)
{
	GFile *file;

        if (argc < 2) {
                printf("File argument is required\n");
                return 1;
        } else if (argc > 2) {
                printf("Too many files\n");
                return 1;
        }

	if (!g_file_test (argv[1], G_FILE_TEST_IS_REGULAR)) {
		printf("argv[1] \"%s\" is not a regular file\n", argv[1]);
	} else {
		printf("argv[1] \"%s\" is a regular file.\n", argv[1]);
	}

	return 0;
}

