Go to the documentation of this file.
18 #ifndef __LIB_LIBFS_DIRECTORY_H
19 #define __LIB_LIBFS_DIRECTORY_H
145 void remove(
const char *name);
char name[DIRENT_LEN]
Name of the file.
virtual File * lookup(const char *name)
Retrieve a File from storage.
FileType
All possible filetypes.
struct Dirent Dirent
Describes an entry inside a Directory.
Directory File functionality.
void insert(FileSystem::FileType type, const char *name)
Insert a new directory entry.
Dirent * get(const char *name)
Retrieve a directory entry by it's name.
virtual ~Directory()
Destructor.
Represents a file present on a FileSystem.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read directory entries.
FileSystem::FileType type
Type of file.
Directory(const u32 inode)
Constructor.
Abstract Input/Output buffer.
List< Dirent * > entries
List of directory entries.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
void clear()
Clears the internal list of entries.
Result
Result code for filesystem Actions.
#define DIRENT_LEN
Maximum length of a filename.
Describes an entry inside a Directory.
void remove(const char *name)
Remove a directory entry.