#include <string>
#include <list>
#include "compressed.h"
#include "utilException.h"
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/exception.hpp>
Go to the source code of this file.
Namespaces | |
namespace | Spm |
namespace | Spm::Util |
Functions | |
std::string | Spm::Util::getUserName () |
boost::filesystem::path | Spm::Util::getUserHome () |
boost::filesystem::path | Spm::Util::getUserHome (const std::string &user) throw (UnknownUserException) |
boost::filesystem::path | Spm::Util::getSpmUserDir () |
boost::filesystem::path | Spm::Util::getSpmUserDir (const std::string &user) |
bool | Spm::Util::isRoot () |
Compressed * | Spm::Util::getCompressed (const boost::filesystem::path &file) |
find the Compressed for a archive | |
void | Spm::Util::checkSpmDir (const boost::filesystem::path &dir) |
Check the srcPack. | |
bool | Spm::Util::haveEnoughRight (const boost::filesystem::path &dir) |
Check that the user have write access to a dir. | |
std::string | Spm::Util::intToStr (unsigned long nb) |
Convert a number to a string. | |
bool | Spm::Util::checkPath (const boost::filesystem::path &path) |
Check if a path exist. |