22#ifndef PALUDIS_GUARD_PALUDIS_UTIL_FS_PATH_HH
23#define PALUDIS_GUARD_PALUDIS_UTIL_FS_PATH_HH 1
25#include <paludis/util/fs_path-fwd.hh>
26#include <paludis/util/fs_stat-fwd.hh>
27#include <paludis/util/timestamp-fwd.hh>
36 friend bool operator== (
const FSPath &,
const FSPath &);
44 explicit FSPath(
const std::string &);
46 FSPath(
const FSPath &);
48 FSPath & operator= (
const FSPath &);
54 FSPath operator/ (
const std::string &)
const PALUDIS_ATTRIBUTE((warn_unused_result));
57 FSPath & operator/= (
const std::string &);
58 FSPath & operator/= (
const FSPath &);
104 bool mkdir(const mode_t mode, const FSPathMkdirOptions &) const;
115 bool symlink(const std::
string & target) const;
144 void chown(const uid_t owner, const gid_t group) const;
151 void lchown(const uid_t owner, const gid_t group) const;
158 void chmod(const mode_t mode) const;
184 void rename(const FSPath & new_name) const;
Definition fs_path.hh:193
FSPath realpath() const PALUDIS_ATTRIBUTE((warn_unused_result))
std::string readlink() const PALUDIS_ATTRIBUTE((warn_unused_result))
FSPath dirname() const PALUDIS_ATTRIBUTE((warn_unused_result))
void lchown(const uid_t owner, const gid_t group) const
bool mkdir(const mode_t mode, const FSPathMkdirOptions &) const
bool utime(const Timestamp &) const
FSPath strip_leading(const FSPath &prefix) const
bool symlink(const std::string &target) const
void chmod(const mode_t mode) const
bool starts_with(const FSPath &) const
void chown(const uid_t owner, const gid_t group) const
const std::string basename() const PALUDIS_ATTRIBUTE((warn_unused_result))
void rename(const FSPath &new_name) const
static FSPath cwd() PALUDIS_ATTRIBUTE((warn_unused_result))
FSPath realpath_if_exists() const PALUDIS_ATTRIBUTE((warn_unused_result))
Definition timestamp.hh:42
std::ostream & operator<<(std::ostream &, const AdditionalPackageDepSpecRequirement &) PALUDIS_VISIBLE
#define PALUDIS_ATTRIBUTE(x)
Definition attributes.hh:53
#define PALUDIS_VISIBLE
Definition attributes.hh:59
Definition about_metadata-fwd.hh:24