]> git.localhorst.tv Git - blank.git/blobdiff - src/io/filesystem.hpp
treat head pitch and yaw as entity state
[blank.git] / src / io / filesystem.hpp
index 3829e0deab46a2f0c316f7f2496f744b328c4bea..b69352a4ba962a4292031ef1662fd5a2274561f4 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef BLANK_IO_FILESYSTEM_HPP_
 #define BLANK_IO_FILESYSTEM_HPP_
 
+#include <ctime>
 #include <string>
 
 
@@ -16,6 +17,11 @@ bool is_file(const char *);
 inline bool is_file(const std::string &s) {
        return is_file(s.c_str());
 }
+/// get timestamp of last modification
+std::time_t file_mtime(const char *);
+inline std::time_t file_mtime(const std::string &s) {
+       return file_mtime(s.c_str());
+}
 
 /// create given directory
 /// @return true if the directory was created