diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-26 17:53:55 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-26 17:53:55 -0300 |
commit | 8c633723964993a2ce6fb1717823caf46514a167 (patch) | |
tree | 5bb4a59cc083364c24eb14d586f4be14bef85951 /index.h | |
parent | 4fc5243fa6c249c1f1e118f95f42870b7ccf8c6e (diff) |
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.
Diffstat (limited to 'index.h')
-rw-r--r-- | index.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |