*/
#include <cerrno>
+#ifdef WIN32
+#include <io.h>
+#endif
#include <msp/core/except.h>
#include "path.h"
#include "stat.h"
return access(path.str().c_str(), F_OK)==0;
}
+bool is_reg(const Path &path)
+{
+ struct stat st;
+ if(stat(path, st)==0)
+ return S_ISREG(st.st_mode);
+ return false;
+}
+
bool is_dir(const Path &path)
{
struct stat st;