diff options
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h index e885d875e..3cf73940e 100644 --- a/src/path.h +++ b/src/path.h @@ -130,6 +130,11 @@ extern bool git_path_isdir(const char *path); extern bool git_path_isfile(const char *path); /** + * Stat a file and/or link and set error if needed. + */ +extern int git_path_lstat(const char *path, struct stat *st); + +/** * Check if the parent directory contains the item. * * @param dir Directory to check. |
