From d0e2caf0ffb195568bba89a95549a5a4f026a4e6 Mon Sep 17 00:00:00 2001 From: Michael Holzheu Date: Mon, 27 Nov 2017 14:37:41 +0100 Subject: [PATCH] util_path: Add description for util_path_exists() Signed-off-by: Michael Holzheu --- libutil/util_path.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libutil/util_path.c b/libutil/util_path.c index 7cf446ea..7fc7b64a 100644 --- a/libutil/util_path.c +++ b/libutil/util_path.c @@ -195,6 +195,17 @@ free_str: return rc; } +/** + * Test if path to directory or file exists + * + * This function has the same semantics as "-e path" in bash. + * + * @param[in] fmt Format string for path to test + * @param[in] ... Variable arguments for format string + * + * @returns true Path exists + * false Otherwise + */ bool util_path_exists(const char *fmt, ...) { va_list ap;