21#include "filesystem/FileSystem.h"
22#include "platform/DirHandle.h"
78 virtual void seek(off_t offset);
Represents a directory stream.
virtual int open(FileSystem *fs, const char *path)
Open a directory on the filesystem.
Dir()
Create an uninitialized directory.
virtual int close()
Close a directory.
virtual off_t tell()
Get the current position of the directory.
Dir(FileSystem *fs, const char *path)
Open a directory on a filesystem.
virtual void seek(off_t offset)
Set the current position of the directory.
virtual size_t size()
Get the sizeof the directory.
virtual void rewind()
Rewind the current position to the beginning of the directory.
virtual ~Dir()
Destroy a file.
virtual ssize_t read(struct dirent *ent)
Read the next directory entry.