BFLibC 0.1
C Library
Loading...
Searching...
No Matches
filesystem.h
Go to the documentation of this file.
1
6#ifndef FILESYSTEM_H
7#define FILESYSTEM_H
8
9#include <stdbool.h>
10
14static const unsigned char kCalculateSizeOptionsVerbose = (0x01) << 0;
15
21unsigned long long BFFileSystemDirectoryGetSizeUsed(const char * path, unsigned char options, int * error);
22
26unsigned long long BFFileSystemFileGetSizeUsed(const char * path, unsigned char options, int * error);
27
31unsigned long long BFFileSystemPathGetSizeAvailable(const char * path, int * error);
32
36bool BFFileSystemPathExists(const char * path);
37
41bool BFFileSystemPathIsFile(const char * path);
42
46bool BFFileSystemPathIsDirectory(const char * path);
47
51bool BFFileSystemPathIsSymbolicLink(const char * path);
52
58char * BFFileSystemPathCopyHomePath(int * err);
59
63int BFFileSystemGetOSTempDirectory(char * path);
64
76int BFFileSystemPathGetExtension(const char * path, char * buf);
77
82int BFFileSystemPathGetName(const char * path, char * ret);
83
87int BFFileSystemPathGetFullname(const char * path, char * ret);
88
92int BFFileSystemRemoveAll(const char * path);
93
94#endif // FILESYSTEM_H
95
unsigned long long BFFileSystemFileGetSizeUsed(const char *path, unsigned char options, int *error)
Definition filesystem.c:84
int BFFileSystemPathGetFullname(const char *path, char *ret)
Definition filesystem.c:208
bool BFFileSystemPathIsSymbolicLink(const char *path)
Definition filesystem.c:144
bool BFFileSystemPathExists(const char *path)
Definition filesystem.c:119
unsigned long long BFFileSystemPathGetSizeAvailable(const char *path, int *error)
Definition filesystem.c:104
int BFFileSystemPathGetExtension(const char *path, char *buf)
Definition filesystem.c:229
bool BFFileSystemPathIsDirectory(const char *path)
Definition filesystem.c:134
bool BFFileSystemPathIsFile(const char *path)
Definition filesystem.c:124
unsigned long long BFFileSystemDirectoryGetSizeUsed(const char *path, unsigned char options, int *error)
Definition filesystem.c:21
int BFFileSystemGetOSTempDirectory(char *path)
Definition filesystem.c:282
int BFFileSystemPathGetName(const char *path, char *ret)
Definition filesystem.c:189
int BFFileSystemRemoveAll(const char *path)
Definition filesystem.c:253
char * BFFileSystemPathCopyHomePath(int *err)
Definition filesystem.c:154