mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
driver/file.h: add isDir()
Origin commit data
------------------
Commit: 7660fa52cb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-30 (Tue, 30 Sep 2014)
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
#endif /* __USE_FILE__OFFSET64 */
|
#endif /* __USE_FILE__OFFSET64 */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -74,6 +74,7 @@ public:
|
|||||||
FileType getType(void) const;
|
FileType getType(void) const;
|
||||||
std::string getFileName(void) const;
|
std::string getFileName(void) const;
|
||||||
std::string getPath(void) const;
|
std::string getPath(void) const;
|
||||||
|
bool isDir(void) { return S_ISDIR(Mode); };
|
||||||
|
|
||||||
CFile();
|
CFile();
|
||||||
off_t Size;
|
off_t Size;
|
||||||
|
Reference in New Issue
Block a user