diff options
Diffstat (limited to 'src/filesys.h')
-rw-r--r-- | src/filesys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filesys.h b/src/filesys.h index 3fa2524c3..a26fe28d6 100644 --- a/src/filesys.h +++ b/src/filesys.h @@ -60,6 +60,11 @@ bool IsPathAbsolute(const std::string &path); bool IsDir(const std::string &path); +inline bool IsFile(const std::string &path) +{ + return PathExists(path) && !IsDir(path); +} + bool IsDirDelimiter(char c); // Only pass full paths to this one. True on success. |