Updated and working.
This commit is contained in:
1 parent
d4148b0ab4
commit
a37c4e6829
30 files changed
+422
-226
No files matched your search
@@ -17,6 +17,18 @@ namespace coreutils {
|
||||
std::string getName() {
|
||||
return std::string(entry.d_name);
|
||||
}
|
||||
|
||||
unsigned char getType() {
|
||||
return entry.d_type;
|
||||
}
|
||||
|
||||
bool isFile() {
|
||||
return entry.d_type == DT_REG;
|
||||
}
|
||||
|
||||
bool isDirectory() {
|
||||
return entry.d_type == DT_DIR;
|
||||
}
|
||||
|
||||
private:
|
||||
struct dirent entry;
|
||||
|
||||
Reference in new issue
Block a user