4 #include <msp/core/systemerror.h>
12 void mkdir(const Path &path, int mode)
14 if(::mkdir(path.str().c_str(), mode)==-1)
15 throw system_error("mkdir");
18 void rmdir(const Path &path)
20 if(::rmdir(path.str().c_str())==-1)
21 throw system_error("rmdir");
26 const char *home = getenv("HOME");
32 Path get_user_data_dir(const string &appname)
34 return get_home_dir()/("."+appname);