diff options
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fileops.c b/src/fileops.c index 92b95c5dd..b11119b91 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -172,6 +172,12 @@ int gitfo_isfile(const char *path) int gitfo_exists(const char *path) { assert(path); + return access(path, F_OK); +} + +int gitfo_shallow_exists(const char *path) +{ + assert(path); struct stat st; return gitfo_lstat(path, &st); |
