diff options
| author | schu <schu-github@schulog.org> | 2011-06-09 19:51:33 +0200 |
|---|---|---|
| committer | schu <schu-github@schulog.org> | 2011-07-06 12:25:27 +0200 |
| commit | 42b3a460976757dbe7c4755fd60c3f542a9fb1e2 (patch) | |
| tree | 30ac890b60414c18f014b03366b4a2353af66eab /src/fileops.h | |
| parent | e190da78f373511ca999d32f66115bbc75705abf (diff) | |
| download | libgit2-42b3a460976757dbe7c4755fd60c3f542a9fb1e2.tar.gz | |
fileops: add git_futils_rmdir_recurs()
git_futils_rmdir_recurs() shall remove the given directory and all
subdirectories. This happens only if the directories are empty.
Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h index cc88682ac..a2f66a5da 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -102,6 +102,9 @@ extern int git_futils_mv_withpath(const char *from, const char *to); */ extern git_off_t git_futils_filesize(git_file fd); +/* Recursively remove an empty directory structure */ +extern int git_futils_rmdir_recurs(const char *path); + /* Taken from git.git */ static inline int is_dot_or_dotdot(const char *name) { |
