From 7660fa52cb5ec223bbfa94d1a60ec7e7ad67869c Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 30 Sep 2014 13:44:13 +0400 Subject: [PATCH] driver/file.h: add isDir() --- src/driver/file.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/driver/file.h b/src/driver/file.h index b65f41fe8..46be83b89 100644 --- a/src/driver/file.h +++ b/src/driver/file.h @@ -41,7 +41,7 @@ #endif /* __USE_FILE__OFFSET64 */ #include - +#include #include #include @@ -74,6 +74,7 @@ public: FileType getType(void) const; std::string getFileName(void) const; std::string getPath(void) const; + bool isDir(void) { return S_ISDIR(Mode); }; CFile(); off_t Size;