Moved some console commands' implementations nearer to target classes
[supertux.git] / src / file_system.hpp
index 47f86f4..2241904 100644 (file)
@@ -8,6 +8,11 @@ namespace FileSystem
 {
   std::string dirname(const std::string& filename);
   std::string basename(const std::string& filename);
+  /**
+   * normalize filename so that "blup/bla/blo/../../bar" will become
+   * "blup/bar"
+   */
+  std::string normalize(const std::string& filename);
 }
 
 #endif