Pause music when pressing ESC during a level and resume it when exiting the pause...
[supertux.git] / src / util / file_system.hpp
index 5cdda27..ff30002 100644 (file)
 
 namespace FileSystem {
 
+/** Returns true if the given path is a directory */
+bool is_directory(const std::string& path);
+
+/** Return true if the given file exists */
+bool exists(const std::string& path);
+
+/**
+ *  Create the given directory
+ */
+void mkdir(const std::string& directory);
+
 /**
  * returns the path of the directory the file is in
  */
@@ -40,6 +51,11 @@ std::string strip_extension(const std::string& filename);
  */
 std::string normalize(const std::string& filename);
 
+/**
+ * join two filenames join("foo", "bar") -> "foo/bar"
+ */
+std::string join(const std::string& lhs, const std::string& rhs);
+
 } // namespace FileSystem
 
 #endif