diff options
Diffstat (limited to 'src/core/file.h')
| -rw-r--r-- | src/core/file.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file.h b/src/core/file.h index b45aae61..7969ae5f 100644 --- a/src/core/file.h +++ b/src/core/file.h @@ -76,4 +76,12 @@ extern char *nni_file_join(const char *, const char *); // The returned value generally is within the supplied path name. extern const char *nni_file_basename(const char *); +// nni_file_is_file returns true if the path references a file. It returns +// false if an error occurs, or the path references something else. +extern bool nni_file_is_file(const char *); + +// nni_file_is_dir returns true if the path references a directroy. It returns +// false if an error occurs, or the path references something else. +extern bool nni_file_is_dir(const char *); + #endif // CORE_FILE_H |
