aboutsummaryrefslogtreecommitdiff
path: root/src/fs.h
blob: 109f5edecc8695c9b76bef58817c49acee77cd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef FS_H
#define FS_H

#ifdef __cplusplus
extern "C" {
#endif

#ifdef _WIN32
#define OS_PATH_SEP "\\"
#else
#define OS_PATH_SEP "/"
#endif

int isFile(const char*);
int isDir(const char*);

int isRelativePath(const char*);
int leavesRelativePath(const char*);

char* normalizeUnixPath(char* path);

int makeDir(const char*);
int removeDir(const char*);

#ifdef __cplusplus
}
#endif

#endif