22 #if !defined(_WIN32) && !defined(_WIN64)
30 #define mkdir(x, y) _mkdir(x)
31 #endif // !defined(_WIN32) && !defined(_WIN64)
34 #include <sys/types.h>
43 #define APPEND_SIZE_REMAP 64
45 #ifndef FILE_SEPARATOR
46 #define FILE_SEPARATOR "/"
bool gru_path_fexists(int fd, gru_status_t *status)
Checks whether a given file exists based on it's file descriptor.
Definition: gru_path.c:39
bool gru_path_rename_cond(const char *filename, gru_path_cond_t cond, gru_status_t *status)
Renames a file based on a condition.
Definition: gru_path.c:92
bool gru_path_exists(const char *filename, gru_status_t *status)
Checks whether a given file exists.
Definition: gru_path.c:19
#define gru_export
Definition: gru_portable.h:19
bool gru_path_mkdirs(const char *path, gru_status_t *status)
Given a path, this function will recursively create directories.
Definition: gru_path.c:162
bool gru_path_can_read_write(const char *filename, gru_status_t *status)
Checks whether can read/write a given file.
Definition: gru_path.c:59
bool gru_path_rename(const char *filename, gru_status_t *status)
Renames a file.
Definition: gru_path.c:134
Status type.
Definition: gru_status.h:47
bool(* gru_path_cond_t)(const char *, gru_status_t *status)
Definition: gru_path.h:49
char * gru_path_format(const char *dir, const char *name, gru_status_t *status)
Formats a path.
Definition: gru_path.c:138
bool gru_path_mkdir(const char *path, gru_status_t *status)
Create a directory.
Definition: gru_path.c:149