- switch (eet_mode_get (*ef)) {
- case EET_FILE_MODE_READ:
- case EET_FILE_MODE_READ_WRITE:
- break;
- default:
- rb_raise (rb_eIOError, "cannot list entries");
- }
-
- rb_scan_args (argc, argv, "01", &glob);
-
- if (!NIL_P (glob))
- tmp = StringValuePtr (glob);
-
- ret = rb_ary_new ();
-
- entries = eet_list (*ef, tmp, &count);