3 #include <arc/Thread.h>
28 bool FileCopy(
const std::string& source_path,
const std::string& destination_path, uid_t uid, gid_t gid);
31 bool FileCopy(
const std::string& source_path,
const std::string& destination_path);
34 bool FileCopy(
const std::string& source_path,
int destination_handle);
37 bool FileCopy(
int source_handle,
const std::string& destination_path);
40 bool FileCopy(
int source_handle,
int destination_handle);
47 bool FileRead(
const std::string& filename, std::list<std::string>& data, uid_t uid=0, gid_t gid=0);
51 bool FileRead(
const std::string& filename, std::string& data, uid_t uid=0, gid_t gid=0);
61 bool FileCreate(
const std::string& filename,
const std::string& data, uid_t uid=0, gid_t gid=0, mode_t mode = 0);
64 bool FileStat(
const std::string& path,
struct stat *st,
bool follow_symlinks);
68 bool FileStat(
const std::string& path,
struct stat *st,uid_t uid,gid_t gid,
bool follow_symlinks);
71 bool FileLink(
const std::string& oldpath,
const std::string& newpath,
bool symbolic);
75 bool FileLink(
const std::string& oldpath,
const std::string& newpath,uid_t uid,gid_t gid,
bool symbolic);
82 std::string
FileReadLink(
const std::string& path,uid_t uid,gid_t gid);
89 bool FileDelete(
const std::string& path,uid_t uid,gid_t gid);
92 bool DirCreate(
const std::string& path,mode_t mode,
bool with_parents =
false);
96 bool DirCreate(
const std::string& path,uid_t uid,gid_t gid,mode_t mode,
bool with_parents =
false);
100 bool DirDelete(
const std::string& path,
bool recursive =
true);
105 bool DirDelete(
const std::string& path,
bool recursive, uid_t uid, gid_t gid);
123 bool TmpFileCreate(std::string& filename,
const std::string& data, uid_t uid=0, gid_t gid=0, mode_t mode = 0);
130 bool CanonicalDir(std::string& name,
bool leading_slash =
true);