summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-19 21:30:15 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-19 21:30:15 +0200
commitfe93dabeef1f2757e73757bb2ec2dd3c912325a8 (patch)
tree47fb3f8009e59238bc6044a04fa9f9485bdf21af /src/fileops.c
parent8ea7fbc0cd5bdee858cfbb239fa043f075a3cc5f (diff)
parent1c2c7c0d1663bcdd279a0a73f6673ab5f81f7ec5 (diff)
downloadlibgit2-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.c13
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