/* * call-seq: * remove(path) * * インデックスファイルの削除。 * * === Argument * path [String] :: インデックスファイル名 * * === Exception * Senna::Error:: インデックスの削除に失敗した */ static VALUE index_remove(VALUE klass, VALUE path) { char *s_path; sen_rc rc; Check_SafeStr(path); s_path = RSTRING_PTR(path); if ((rc = sen_index_remove(s_path)) != sen_success) senna_error(rc, "cannot remove %s: %s", s_path, strerror(errno)); return Qnil; }