From 86dc6860f9def64ad554a7c69eeae28203661e2c Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Wed, 28 Sep 2016 18:59:15 +0200 Subject: Allow opening directories non-recursively --- util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util.h') diff --git a/util.h b/util.h index 91b76d1..8918f75 100644 --- a/util.h +++ b/util.h @@ -55,6 +55,7 @@ typedef struct { DIR *dir; char *name; int d; + bool recursive; char **stack; int stcap; @@ -71,7 +72,7 @@ void error(int, int, const char*, ...); void size_readable(float*, const char**); -int r_opendir(r_dir_t*, const char*); +int r_opendir(r_dir_t*, const char*, bool); int r_closedir(r_dir_t*); char* r_readdir(r_dir_t*); int r_mkdir(char*); -- cgit v1.2.3