#include "gi_path.h"
#include <limits.h>
#include <dirent.h>
#include <io.h>
#include <stddef.h>
Go to the source code of this file.
Classes | |
| struct | dirent |
| struct | DIR |
Defines | |
| #define | PATH_MAX 4096 |
| #define | S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
| #define | S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) |
| #define | S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) |
| #define | S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) |
| #define | S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
Functions | |
| EXTERN_C_BEGIN LIBGIFT_EXPORT int | gi_file_mv (const char *src, const char *dst) |
| LIBGIFT_EXPORT int | gi_file_cp (const char *src, const char *dst) |
| LIBGIFT_EXPORT int | gi_file_mkdir (const char *path, int mode) |
| LIBGIFT_EXPORT int | gi_file_mkdirp (GiPath *path, int mode) |
| LIBGIFT_EXPORT int | unlink (const char *path) |
| LIBGIFT_EXPORT int | rmdir (const char *path) |
| LIBGIFT_EXPORT int | gi_file_rmdirr (const char *path) |
|
||||||||||||
|
Make a copy of a file.
|
|
||||||||||||
|
Portable alternative to the POSIX mkdir() function. This function behaves identically in every way, except that the calling parameter is defined as int instead of mode_t.
|
|
||||||||||||
|
Similar to /bin/mkdir --parents. If any of the internal calls to gi_file_mkdir fail, or there is an element on the directory path that exists but is not already a directory, the call will abort. If the full path already exists as a directory, no action will be performed.
|
|
||||||||||||
|
Move a file, first attempting rename(), then a copy and unlink in /bin/mv fashion.
|
|
|
Remove a directory path as would be done with /bin/rm -r. All subdirectories and files there-under will be removed. In the event of an error, the process will continue until all entries have been attempted.
|
1.3.7