-void mkdir(const Path &path, int mode)
-{
- int err;
-#ifdef WIN32
- // The win32 version of this function doesn't take the mode argument. Go figure.
- (void)mode;
- err = ::mkdir(path.str().c_str());
-#else
- err = ::mkdir(path.str().c_str(), mode);
-#endif
-
- if(err==-1)
- throw system_error("mkdir");
-}
-