Fix some compilation errors on Mac OS X
[lsnes.git] / include / library / directory.hpp
blob96479497dbc57ee3fe5fa1420c314d1cbc864a3d
1 #ifndef _library__directory__hpp__included__
2 #define _library__directory__hpp__included__
4 #include <set>
5 #include <string>
6 #include <cstdlib>
8 namespace directory
10 std::set<std::string> enumerate(const std::string& dir, const std::string& match);
11 std::string absolute_path(const std::string& relative);
12 uintmax_t size(const std::string& path);
13 time_t mtime(const std::string& path);
14 bool exists(const std::string& filename);
15 bool is_regular(const std::string& filename);
16 bool is_directory(const std::string& filename);
17 bool ensure_exists(const std::string& path);
18 int rename_overwrite(const char* oldname, const char* newname);
21 #endif