Crashpad
|
Iterates over the file and directory names in a directory. More...
#include "util/file/directory_reader.h"
Public Types | |
enum | Result |
The result of a call to NextFile(). More... | |
Public Member Functions | |
bool | Open (const base::FilePath &path) |
Opens the directory specified by path for reading. More... | |
Result | NextFile (base::FilePath *filename) |
Advances the reader to the next file in the directory. More... | |
int | DirectoryFD () |
Returns the file descriptor associated with this reader, logging a message and returning -1 on error. | |
Iterates over the file and directory names in a directory.
The names enumerated are relative to the specified directory and do not include ".", "..", or files and directories in subdirectories.
|
strong |
The result of a call to NextFile().
Enumerator | |
---|---|
kError | An error occurred and a message was logged. |
kSuccess | A file was found. |
kNoMoreFiles | No more files were found. |
DirectoryReader::Result crashpad::DirectoryReader::NextFile | ( | base::FilePath * | filename | ) |
Advances the reader to the next file in the directory.
[out] | filename | The filename of the next file. |
bool crashpad::DirectoryReader::Open | ( | const base::FilePath & | path | ) |
Opens the directory specified by path for reading.
[in] | path | The path to the directory to read. |
true
on success. false
on failure with a message logged.