Updated and working.

This commit is contained in:
Brad Arant committed 2022-01-24 14:03:58 -08:00
1 parent d4148b0ab4
commit a37c4e6829
30 files changed
+422 -226

No files matched your search

+12
View File
@@ -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;