]> git.localhorst.tv Git - blank.git/blobdiff - src/io/filesystem.hpp
file and directory removal functions
[blank.git] / src / io / filesystem.hpp
index b69352a4ba962a4292031ef1662fd5a2274561f4..2af55fcce265d866ef33139a470fb0555fc28cd3 100644 (file)
@@ -34,6 +34,14 @@ inline bool make_dir(const std::string &s) {
 /// @return true if the directory was created or already exists
 bool make_dirs(const std::string &);
 
+/// remove given file
+/// @return true on success
+bool remove_file(const std::string &);
+/// recursively remove given directory
+/// may leave the directory partially removed on failure
+/// @return true if the directory was completely removed
+bool remove_dir(const std::string &);
+
 }
 
 #endif