12 #ifndef ZYPP_PATHINFO_H
13 #define ZYPP_PATHINFO_H
17 #include <sys/types.h>
156 mode_t
perm()
const {
return (
_mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX)); }
201 bool insert(
const dev_t & dev_r,
const ino_t & ino_r ) {
202 return _devino[dev_r].insert( ino_r ).second;
324 mode_t
perm()
const {
return isExist() ? (
statbuf_C.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX)) : 0; }
362 unsigned int major()
const;
363 unsigned int minor()
const;
513 int readdir( std::list<std::string> & retlist,
514 const Pathname & path,
bool dots =
true );
528 int readdir( std::list<Pathname> & retlist,
529 const Pathname & path,
bool dots =
true );
688 Pathname
expandlink(
const Pathname & path_r );
696 int copy_file2dir(
const Pathname & file,
const Pathname & dest );
709 std::string
md5sum(
const Pathname & file );
716 std::string
sha1sum(
const Pathname & file );
724 std::string
checksum(
const Pathname & file,
const std::string &algorithm );
741 int chmod(
const Pathname & path, mode_t mode );
748 int addmod(
const Pathname & path, mode_t mode );
755 int delmod(
const Pathname & path, mode_t mode );
777 int erase(
const Pathname & path );
810 using filesystem::PathInfo;
815 #endif // ZYPP_PATHINFO_H