BuildCache
Public Member Functions | Private Attributes | List of all members
bcache::file::file_info_t Class Reference

Information about a file. More...

#include <file_utils.hpp>

Public Member Functions

 file_info_t (const std::string &path, const time::seconds_t modify_time, const time::seconds_t access_time, const int64_t size, const bool is_dir)
 
const std::string & path () const
 
time::seconds_t modify_time () const
 
time::seconds_t access_time () const
 
int64_t size () const
 
bool is_dir () const
 

Private Attributes

std::string m_path
 
time::seconds_t m_modify_time
 
time::seconds_t m_access_time
 
int64_t m_size
 
bool m_is_dir
 

Detailed Description

Information about a file.

Member Function Documentation

◆ access_time()

time::seconds_t bcache::file::file_info_t::access_time ( ) const
inline
Returns
the last access time of the file, or the most recent access time for any of the recursively contained files if this is a directory.

◆ is_dir()

bool bcache::file::file_info_t::is_dir ( ) const
inline
Returns
true if file is a directory.

◆ modify_time()

time::seconds_t bcache::file::file_info_t::modify_time ( ) const
inline
Returns
the last modification time of the file, or the most recent modification time for any of the recursively contained files if this is a directory.

◆ path()

const std::string& bcache::file::file_info_t::path ( ) const
inline
Returns
the full path to the file.

◆ size()

int64_t bcache::file::file_info_t::size ( ) const
inline
Returns
the size of the file (in bytes), or the size of all the recursively contained files if this is a directory.

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