X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fio%2Ffilesystem.hpp;h=2af55fcce265d866ef33139a470fb0555fc28cd3;hb=3767297f8a338bafbc3e621877fb6ba8435680bb;hp=b69352a4ba962a4292031ef1662fd5a2274561f4;hpb=e9ea3616ecfd05fc267289c52d695b7029ba0901;p=blank.git diff --git a/src/io/filesystem.hpp b/src/io/filesystem.hpp index b69352a..2af55fc 100644 --- a/src/io/filesystem.hpp +++ b/src/io/filesystem.hpp @@ -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