Added CreateDirectory function to service/fs.cpp, and in Archive.

This commit is contained in:
archshift 2014-10-28 22:52:56 -07:00
parent 2ca12e7f38
commit 04c90c395d
8 changed files with 103 additions and 4 deletions

View file

@ -56,6 +56,13 @@ public:
*/
virtual std::unique_ptr<File> OpenFile(const std::string& path, const Mode mode) const = 0;
/**
* Create a directory specified by its path
* @param path Path relative to the archive
* @return Whether the directory could be created
*/
virtual bool CreateDirectory(const std::string& path) const = 0;
/**
* Open a directory specified by its path
* @param path Path relative to the archive