Translator初步
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
#include "def.h"
|
||||
|
||||
#include "exception.h"
|
||||
#include "File.h"
|
||||
|
||||
File FileAccessor::getAccess(const String& path) {
|
||||
namespace fs = std::filesystem;
|
||||
using Path = fs::path;
|
||||
Path original = path;
|
||||
Path p = original.parent_path();
|
||||
if (!fs::exists(p)) {
|
||||
create_directories(p);
|
||||
Logger.info(L"Created directory " + p.wstring());
|
||||
}
|
||||
return File(p);
|
||||
}
|
||||
Reference in New Issue
Block a user