libwreport  3.6
Data Structures | Public Member Functions | Data Fields
wreport::fs::Directory Struct Reference

Access a directory on the file system. More...

#include <fs.h>

Data Structures

struct  const_iterator
 Iterator for directory entries. More...
 

Public Member Functions

 Directory (const std::string &pathname)
 
const_iterator begin () const
 Begin iterator on all directory entries.
 
const_iterator end () const
 End iterator on all directory entries.
 
bool exists () const
 Check if the directory exists.
 
void stat (struct stat &st)
 Call stat(2) on the directory.
 

Data Fields

const std::string & pathname
 Pathname of the directory.
 
int fd
 O_PATH file descriptor pointing at the directory, or -1 if the directory does not exist.
 

Detailed Description

Access a directory on the file system.


The documentation for this struct was generated from the following file: