9 #ifndef __libutilxx__sella__util__Path_H__
10 #define __libutilxx__sella__util__Path_H__
12 #include "../../common.h"
13 #include "PathException.h"
26 static std::vector<std::string>& search(std::vector<std::string> &file,
const std::string &path,
const std::string ®ex)
throw (PathException);
28 static std::string create(
const std::vector<std::string> &path, mode_t mode = 0750, uid_t uid = -1, gid_t gid = -1)
throw (PathException);
29 static std::string create(
const std::string &path, mode_t mode = 0750, uid_t uid = -1, gid_t gid = -1)
throw (PathException);
31 static void unlink(
const std::string &path)
throw (PathException);
33 static uint64_t getPartitionSize(
const std::string &path)
throw (PathException);
34 static uint64_t getPartitionUsed(
const std::string &path)
throw (PathException);
35 static uint64_t getPartitionFree(
const std::string &path)
throw (PathException);
36 static double getPartitionFull(
const std::string &path)
throw (PathException);