mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
driver/file.h: add isDir()
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