paludis Version 3.0.2
The one true package mangler
paludis::FSStat Class Reference

Public Member Functions

 FSStat (const FSPath &)
 FSStat (const FSStat &)
FSStat & operator= (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

◆ ctim()

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

References PALUDIS_ATTRIBUTE.

◆ file_size()

off_t paludis::FSStat::file_size ( ) const

Return the size of our file, in bytes.

Exceptions
FSErrorif we don't have a size.

References file_size(), and PALUDIS_ATTRIBUTE.

Referenced by file_size().

◆ group()

gid_t paludis::FSStat::group ( ) const

Fetch our group.

Exceptions
FSErrorIf we don't exist or the stat call fails.

References group(), and PALUDIS_ATTRIBUTE.

Referenced by group().

◆ lowlevel_id()

std::pair< dev_t, ino_t > paludis::FSStat::lowlevel_id ( ) const

Return an unique low-level id for this entry

References lowlevel_id(), and PALUDIS_ATTRIBUTE.

Referenced by lowlevel_id().

◆ mtim()

Timestamp paludis::FSStat::mtim ( ) const

Return the time the filesystem entry was last modified

Exceptions
FSErrorif there was a problem accessing the filesystem entry

References mtim(), and PALUDIS_ATTRIBUTE.

Referenced by mtim().

◆ owner()

uid_t paludis::FSStat::owner ( ) const

Fetch our owner.

Exceptions
FSErrorIf we don't exist or the stat call fails.

References owner(), and PALUDIS_ATTRIBUTE.

Referenced by owner().

◆ permissions()

mode_t paludis::FSStat::permissions ( ) const

Return the permissions for our item.

Exceptions
FSErrorif there was a problem accessing the filesystem entry

References PALUDIS_ATTRIBUTE, and permissions().

Referenced by permissions().


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