Continued development...
This commit is contained in:
1 parent
c957bbbb6f
commit
50f6e972de
24 files changed
+243
-40
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#ifndef __DirectoryEntry_h__
|
||||
#define __DirectoryEntry_h__
|
||||
|
||||
#include "includes"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
class DirectoryEntry {
|
||||
|
||||
public:
|
||||
DirectoryEntry(struct dirent *entry) {
|
||||
memcpy(this->entry, entry, sizeof(struct dirent));
|
||||
}
|
||||
|
||||
~DirectoryEntry() {}
|
||||
|
||||
std::string getName() {
|
||||
return std::string(entry->d_name);
|
||||
}
|
||||
|
||||
private:
|
||||
struct dirent entry;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user