driver/file.h: add isDir()

This commit is contained in:
[CST] Focus
2014-09-30 13:44:13 +04:00
parent c14ab10c2e
commit 7660fa52cb

View File

@@ -41,7 +41,7 @@
#endif /* __USE_FILE__OFFSET64 */
#include <sys/types.h>
#include <sys/stat.h>
#include <string>
#include <vector>
@@ -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;