fs: implement DeleteDirectoryRecursively

This commit is contained in:
wwylele
2016-10-02 11:29:04 +08:00
parent 4b14e17b18
commit 96b0e9476b
8 changed files with 70 additions and 1 deletions

View File

@ -111,6 +111,13 @@ public:
*/
virtual bool DeleteDirectory(const Path& path) const = 0;
/**
* Delete a directory specified by its path and anything under it
* @param path Path relative to the archive
* @return Whether the directory could be deleted
*/
virtual bool DeleteDirectoryRecursively(const Path& path) const = 0;
/**
* Create a file specified by its path
* @param path Path relative to the Archive