aboutsummaryrefslogtreecommitdiff
path: root/include/path.h
blob: 4debbad073bf4c79c9df6295c3b61a4592c92e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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);
char *ecex_project_root_for_file(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