From 8c633723964993a2ce6fb1717823caf46514a167 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 26 Jul 2022 17:53:55 -0300 Subject: index: Add `index_path_exists()` This function checks if the converted path of a given index exists, or not. It also returns the converted path in `path` if the path exists. --- index.h | 1 + 1 file changed, 1 insertion(+) (limited to 'index.h') diff --git a/index.h b/index.h index d579d98..4b37534 100644 --- a/index.h +++ b/index.h @@ -17,5 +17,6 @@ struct index { extern int is_valid_index(index *idx); extern char *make_index_path(const char *root, index *idx, int path_type); extern char *index_to_str(index *idx); +extern int index_path_exists(index *idx, const char *root, char **path); #endif -- cgit v1.2.3-13-gbd6f