blob: e76a654b24a461975b46f24cd3bd0eff35fd8df9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef ECEX_PATH_H
#define ECEX_PATH_H
#include <stddef.h>
int ecex_path_copy(char *out, size_t out_size, const char *text);
char *ecex_path_expand_user(const char *path);
char *ecex_path_join(const char *dir, const char *name);
char *ecex_path_dirname(const char *path);
char *ecex_path_basename_dup(const char *path);
char *ecex_path_normalize(const char *path);
int ecex_path_is_dir(const char *path);
int ecex_path_is_file(const char *path);
int ecex_path_exists(const char *path);
long long ecex_path_file_size(const char *path);
int ecex_path_is_image(const char *path);
int ecex_path_is_previewable_image(const char *path);
int ecex_path_is_video(const char *path);
int ecex_path_is_media(const char *path);
int ecex_path_cwd(char *out, size_t out_size);
#endif
|