#include <sys/types.h>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/exception.hpp>
#include "zypp/base/Logger.h"
#include "zypp/base/String.h"
#include "zypp/base/IOStream.h"
#include "zypp/ExternalProgram.h"
#include "zypp/PathInfo.h"
#include "zypp/Digest.h"
Go to the source code of this file.
Namespaces | |
namespace | zypp |
namespace | zypp::filesystem |
Directory related functions. | |
int | zypp::filesystem::mkdir (const Pathname &path, unsigned mode=0755) |
Like 'mkdir'. | |
int | zypp::filesystem::assert_dir (const Pathname &path, unsigned mode=0755) |
Like 'mkdir -p'. | |
int | zypp::filesystem::rmdir (const Pathname &path) |
Like 'rmdir'. | |
int | zypp::filesystem::recursive_rmdir (const Pathname &path) |
Like 'rm -r DIR'. | |
int | zypp::filesystem::clean_dir (const Pathname &path) |
Like 'rm -r DIR/ *'. | |
int | zypp::filesystem::copy_dir (const Pathname &srcpath, const Pathname &destpath) |
Like 'cp -a srcpath destpath'. | |
int | zypp::filesystem::copy_dir_content (const Pathname &srcpath, const Pathname &destpath) |
Like 'cp -a srcpath/. | |
int | zypp::filesystem::readdir (std::list< std::string > &retlist, const Pathname &path, bool dots=true) |
Return content of directory via retlist. | |
int | zypp::filesystem::readdir (std::list< Pathname > &retlist, const Pathname &path, bool dots=true) |
Return content of directory via retlist. | |
int | zypp::filesystem::readdir (DirContent &retlist, const Pathname &path, bool dots=true, PathInfo::Mode statmode=PathInfo::STAT) |
Return content of directory via retlist. | |
int | zypp::filesystem::is_empty_dir (const Pathname &path) |
Check if the specified directory is empty. | |
File related functions. | |
int | zypp::filesystem::unlink (const Pathname &path) |
Like 'unlink'. | |
int | zypp::filesystem::rename (const Pathname &oldpath, const Pathname &newpath) |
Like 'rename'. | |
int | zypp::filesystem::copy (const Pathname &file, const Pathname &dest) |
Like 'cp file dest'. | |
int | zypp::filesystem::symlink (const Pathname &oldpath, const Pathname &newpath) |
Like 'symlink'. | |
int | zypp::filesystem::hardlink (const Pathname &oldpath, const Pathname &newpath) |
Like 'link'. | |
int | zypp::filesystem::copy_file2dir (const Pathname &file, const Pathname &dest) |
Like 'cp file dest'. | |
Digest computaion. | |
| |
std::string | zypp::filesystem::md5sum (const Pathname &file) |
Compute a files md5sum. | |
std::string | zypp::filesystem::sha1sum (const Pathname &file) |
Compute a files sha1sum. | |
Misc. | |
int | zypp::filesystem::erase (const Pathname &path) |
Erase whatever happens to be located at path (file or directory). | |
ZIP_TYPE | zypp::filesystem::zipType (const Pathname &file) |
Changing permissions. | |
int | zypp::filesystem::chmod (const Pathname &path, mode_t mode) |
Like 'chmod'. | |
Defines | |
#define | EMUMOUT(T) case T: return str << #T; break |
Functions | |
std::ostream & | zypp::filesystem::operator<< (std::ostream &str, FileType obj) |
std::ostream & | zypp::filesystem::operator<< (std::ostream &str, const StatMode &obj) |
std::ostream & | zypp::filesystem::operator<< (std::ostream &str, const PathInfo &obj) |
int | zypp::filesystem::_Log_Result (const int res, const char *rclass="errno") |
Definition in file PathInfo.cc.
|
Referenced by zypp::filesystem::operator<<(). |