Files
spectrumAnalyzer/File.cpp
T
2025-03-21 11:06:51 +08:00

18 lines
348 B
C++

#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);
}