summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fileops.c b/src/fileops.c
index 0867c7b57..16b9dc520 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -53,6 +53,12 @@ int gitfo_write(git_file fd, void *buf, size_t cnt)
return GIT_SUCCESS;
}
+int gitfo_exists(const char *path)
+{
+ struct stat sb;
+ return stat(path, &sb);
+}
+
off_t gitfo_size(git_file fd)
{
struct stat sb;