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; }
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 );
544 {
return str <<
'[' << obj.
type <<
"] " << obj.
name; }
696 Pathname
expandlink(
const Pathname & path_r );
704 int copy_file2dir(
const Pathname & file,
const Pathname & dest );
717 std::string
md5sum(
const Pathname & file );
724 std::string
sha1sum(
const Pathname & file );
732 std::string
checksum(
const Pathname & file,
const std::string &algorithm );
749 int chmod(
const Pathname & path, mode_t mode );
756 int addmod(
const Pathname & path, mode_t mode );
763 int delmod(
const Pathname & path, mode_t mode );
785 int erase(
const Pathname & path );
818 using filesystem::PathInfo;
823 #endif // ZYPP_PATHINFO_H