Updated and working.
This commit is contained in:
1 parent
d4148b0ab4
commit
a37c4e6829
30 files changed
+422
-226
No files matched your search
+3
-2
@@ -3,6 +3,7 @@
|
||||
|
||||
# include "includes"
|
||||
# include "DirectoryEntry.h"
|
||||
# include "Log.h"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
@@ -29,7 +30,7 @@ namespace coreutils {
|
||||
}
|
||||
|
||||
DirectoryEntry get() {
|
||||
if(cursor == directory.end())
|
||||
if(eod())
|
||||
return NULL;
|
||||
return cursor->second;
|
||||
}
|
||||
@@ -42,7 +43,7 @@ namespace coreutils {
|
||||
DIR *dir;
|
||||
std::map<std::string, DirectoryEntry> directory;
|
||||
std::map<std::string, DirectoryEntry>::iterator cursor;
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user