29 Status read(
char * fileNameBuffer, U32 bufSize);
30 Status read(
char * fileNameBuffer, U32 bufSize, I64& inode);
PlatformPointerCastType POINTER_CAST
PlatformIntType NATIVE_INT_TYPE
C++-compatible configuration header for fprime configuration.
@ OP_OK
Operation was successful.
@ OTHER_ERROR
A catch-all for other errors. Have to look in implementation-specific code.
@ NO_PERMISSION
No permission to read directory.
@ NO_MORE_FILES
Directory stream has no more files.
@ NOT_DIR
Path is not a directory.
@ DOESNT_EXIST
Directory doesn't exist.
@ NOT_OPENED
Directory hasn't been opened yet.
bool isOpen()
check if file descriptor is open or not.
void close()
close directory
Status rewind()
rewind directory stream to the beginning
Status read(char *fileNameBuffer, U32 bufSize)
get next filename from directory
const char * getLastErrorString()
get a string of the last error (typically from strerror)
Status open(const char *dirName)
open directory. Directory must already exist
NATIVE_INT_TYPE getLastError()
read back last error code (typically errno)
virtual ~Directory()
Destructor. Will close directory if still open.