1 #ifndef MSP_PATH_UTILS_H_
2 #define MSP_PATH_UTILS_H_
19 extern Path fix_case(const Path &);
20 extern int mkpath(const Path &, int);
21 extern int rmdir(const Path &, bool =false);
22 extern std::list<std::string> list_files(const Path &);
23 extern bool exists(const Path &);
24 extern Filename splitext(const std::string &);
25 extern int fnmatch(const std::string &, const Path &);
27 inline int stat(const Path &fn, struct stat &st)
28 { return ::stat(fn.str().c_str(), &st); }
31 { char buf[1024]; return ::getcwd(buf, sizeof(buf)); }