Added CreateDirectory function to service/fs.cpp, and in Archive.
This commit is contained in:
parent
2ca12e7f38
commit
04c90c395d
8 changed files with 103 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue