1#ifndef BASE_FS_H
2#define BASE_FS_H
3
4/**
5 * Creates a directory.
6 *
7 * @ingroup Filesystem
8 *
9 * @param path Directory to create.
10 *
11 * @return `0` on success. Negative value on failure.
12 *
13 * @remark Does not create several directories if needed. "a/b/c" will
14 * result in a failure if b or a does not exist.
15 *
16 * @remark The strings are treated as null-terminated strings.
17 */
18int fs_makedir(const char *path);
19
20/**
21 * Removes a directory.
22 *
23 * @ingroup Filesystem
24 *
25 * @param path Directory to remove.
26 *
27 * @return `0` on success. Negative value on failure.
28 *
29 * @remark Cannot remove a non-empty directory.
30 *
31 * @remark The strings are treated as null-terminated strings.
32 */
33int fs_removedir(const char *path);
34
35#endif
36