diff --git a/src/fisdir.c b/src/fisdir.c index 7b0deda..758efe9 100644 --- a/src/fisdir.c +++ b/src/fisdir.c @@ -25,17 +25,17 @@ #include /** - * fexist - Check if a file exists and is a directory. - * @file: File to look for, with full path. + * fisdir - Check if a path exists and is a directory. + * @path: Path to file or directory * * Returns: - * %TRUE(1) if the file exists and is a directory, otherwise %FALSE(0). + * %TRUE(1) if @path exists and is a directory, otherwise %FALSE(0). */ -int fisdir(const char *file) +int fisdir(const char *path) { struct stat sb; - if (!stat(file, &sb) && S_ISDIR(sb.st_mode)) + if (!stat(path, &sb) && S_ISDIR(sb.st_mode)) return 1; return 0; diff --git a/src/lite.h b/src/lite.h index 73ea91f..7875661 100644 --- a/src/lite.h +++ b/src/lite.h @@ -57,7 +57,7 @@ char *chomp (char *str); char *fparseln (FILE *, size_t *, size_t *, const char[3], int); int fexist (const char *file); -int fisdir (const char *file); +int fisdir (const char *path); FILE *tempfile (void); ssize_t copyfile (const char *src, const char *dst, int len, int opt);