diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-12-19 21:30:15 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-12-19 21:30:15 +0200 |
| commit | fe93dabeef1f2757e73757bb2ec2dd3c912325a8 (patch) | |
| tree | 47fb3f8009e59238bc6044a04fa9f9485bdf21af /src/fileops.c | |
| parent | 8ea7fbc0cd5bdee858cfbb239fa043f075a3cc5f (diff) | |
| parent | 1c2c7c0d1663bcdd279a0a73f6673ab5f81f7ec5 (diff) | |
| download | libgit2-fe93dabeef1f2757e73757bb2ec2dd3c912325a8.tar.gz | |
Merge branch 'repo-init' of https://github.com/nulltoken/libgit2 into nulltoken-repo-init
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fileops.c b/src/fileops.c index 0633f9b21..97b2f0739 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -310,3 +310,16 @@ int gitfo_dirent( closedir(dir); return GIT_SUCCESS; } + +int gitfo_mkdir_recurs(const char *path, int mode) +{ + //TODO: Implement recursive building of the parent tree structure (This would have to work on both Linux and Windows). + int error; + + error = gitfo_mkdir(path, mode); + + if (errno == EEXIST) + return GIT_SUCCESS; + + return error; +}
\ No newline at end of file |
