Advancing along here.
This commit is contained in:
1 parent
5bd9e9ca21
commit
c3c9530b4b
5 files changed
+39
-37
No files matched your search
+10
-10
@@ -4,25 +4,25 @@
|
||||
# include "includes"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
|
||||
class DirectoryEntry {
|
||||
|
||||
|
||||
public:
|
||||
DirectoryEntry(struct dirent *entry) {
|
||||
memcpy(&this->entry, entry, sizeof(struct dirent));
|
||||
memcpy(&this->entry, entry, sizeof(struct dirent));
|
||||
}
|
||||
|
||||
~DirectoryEntry() {}
|
||||
|
||||
|
||||
~DirectoryEntry() {}
|
||||
|
||||
std::string getName() {
|
||||
return std::string(entry.d_name);
|
||||
return std::string(entry.d_name);
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
struct dirent entry;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user