throw system_error("rmdir");
}
+Path getcwd()
+{
+ char buf[1024];
+ return ::getcwd(buf, sizeof(buf));
+}
+
+void chdir(const Path &path)
+{
+ if(::chdir(path.str().c_str())==-1)
+ throw system_error("chdir");
+}
+
Path get_home_dir()
{
const char *home = getenv("HOME");