paludis  Version 2.6.0
Public Member Functions | List of all members
paludis::FSStat Class Reference

Public Member Functions

 FSStat (const FSPath &)
 
 FSStat (const FSStat &)
 
FSStatoperator= (const FSStat &)
 
bool exists () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool is_regular_file () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool is_regular_file_or_symlink_to_regular_file () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool is_directory () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool is_directory_or_symlink_to_directory () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool is_symlink () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
Timestamp ctim () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
Timestamp mtim () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
mode_t permissions () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
off_t file_size () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
uid_t owner () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
gid_t group () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
std::pair< dev_t, ino_t > lowlevel_id () const PALUDIS_ATTRIBUTE((warn_unused_result))
 

Member Function Documentation

Timestamp paludis::FSStat::ctim ( ) const

Return the time the inode for the filesystem entry was last modified

Exceptions
FSErrorif there was a problem accessing the filesystem entry
off_t paludis::FSStat::file_size ( ) const

Return the size of our file, in bytes.

Exceptions
FSErrorif we don't have a size.
gid_t paludis::FSStat::group ( ) const

Fetch our group.

Exceptions
FSErrorIf we don't exist or the stat call fails.
std::pair<dev_t, ino_t> paludis::FSStat::lowlevel_id ( ) const

Return an unique low-level id for this entry

Timestamp paludis::FSStat::mtim ( ) const

Return the time the filesystem entry was last modified

Exceptions
FSErrorif there was a problem accessing the filesystem entry
uid_t paludis::FSStat::owner ( ) const

Fetch our owner.

Exceptions
FSErrorIf we don't exist or the stat call fails.
mode_t paludis::FSStat::permissions ( ) const

Return the permissions for our item.

Exceptions
FSErrorif there was a problem accessing the filesystem entry

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