|
paludis Version 3.0.2
The one true package mangler
|
Public Member Functions | |
| FSPath (const std::string &) | |
| FSPath (const FSPath &) | |
| FSPath & | operator= (const FSPath &) |
| FSStat | stat () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| FSPath | operator/ (const std::string &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| FSPath | operator/ (const FSPath &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| FSPath & | operator/= (const std::string &) |
| FSPath & | operator/= (const FSPath &) |
| const std::string | basename () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| FSPath | dirname () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| FSPath | realpath () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| FSPath | realpath_if_exists () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| FSPath | strip_leading (const FSPath &prefix) const |
| bool | starts_with (const FSPath &) const |
| bool | mkdir (const mode_t mode, const FSPathMkdirOptions &) const |
| bool | symlink (const std::string &target) const |
| bool | unlink () const |
| bool | rmdir () const |
| void | chown (const uid_t owner, const gid_t group) const |
| void | lchown (const uid_t owner, const gid_t group) const |
| void | chmod (const mode_t mode) const |
| bool | utime (const Timestamp &) const |
| std::string | readlink () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| void | rename (const FSPath &new_name) const |
Static Public Member Functions | |
| static FSPath | cwd () PALUDIS_ATTRIBUTE((warn_unused_result)) |
Friends | |
| std::ostream & | paludis::operator<< (std::ostream &s, const FSPath &f) |
| bool | operator== (const FSPath &, const FSPath &) |
| const std::string paludis::FSPath::basename | ( | ) | const |
Return the last part of our path (eg '/foo/bar' => 'bar').
References PALUDIS_ATTRIBUTE.
| void paludis::FSPath::chmod | ( | const mode_t | mode | ) | const |
| void paludis::FSPath::chown | ( | const uid_t | owner, |
| const gid_t | group ) const |
|
static |
| FSPath paludis::FSPath::dirname | ( | ) | const |
Return the first part of our path (eg '/foo/bar' => '/foo').
References dirname(), and PALUDIS_ATTRIBUTE.
Referenced by dirname().
| void paludis::FSPath::lchown | ( | const uid_t | owner, |
| const gid_t | group ) const |
| bool paludis::FSPath::mkdir | ( | const mode_t | mode, |
| const FSPathMkdirOptions & | ) const |
Try to make a directory.
| FSError | If an error other than the directory already existing occurs, or if the directory already exists and options does not include fspmkdo_ok_if_exists. |
References mkdir().
Referenced by mkdir().
| std::string paludis::FSPath::readlink | ( | ) | const |
Return our destination, if we are a symlink.
| FSError | if we are not a symlink, or if the system call fails. |
References PALUDIS_ATTRIBUTE, and readlink().
Referenced by readlink().
| FSPath paludis::FSPath::realpath | ( | ) | const |
Return the canonicalised version of our path.
References PALUDIS_ATTRIBUTE, and realpath().
Referenced by realpath().
| FSPath paludis::FSPath::realpath_if_exists | ( | ) | const |
Return the canonicalised version of our path, if it exists, or ourself if it doesn't.
References PALUDIS_ATTRIBUTE, and realpath_if_exists().
Referenced by realpath_if_exists().
| void paludis::FSPath::rename | ( | const FSPath & | new_name | ) | const |
| bool paludis::FSPath::rmdir | ( | ) | const |
| bool paludis::FSPath::starts_with | ( | const FSPath & | ) | const |
Do we start with a given path (eg '/foo/bar' starts with '/foo' but not '/fo')?
References starts_with().
Referenced by starts_with().
| FSPath paludis::FSPath::strip_leading | ( | const FSPath & | prefix | ) | const |
Return the path without a given prefix (eg '/foo/bar/baz'->strip_leading('/foo') => '/bar/baz').
References strip_leading().
Referenced by strip_leading().
| bool paludis::FSPath::symlink | ( | const std::string & | target | ) | const |
Try to make a symlink.
| FSError | If an error other than the symlink already existing occurs, or if the symlink exists and points elsewhere. |
References symlink().
Referenced by symlink().
| bool paludis::FSPath::unlink | ( | ) | const |
| bool paludis::FSPath::utime | ( | const Timestamp & | ) | const |