| 28 | } |
| 29 | |
| 30 | bool SourceFileManager::createFile(std::string Name, std::string Content) { |
| 31 | auto Path = fs::path(getSrcDirPath()) / Name; |
| 32 | if (!util::saveFile(Path.c_str(), Content.c_str())) |
| 33 | return false; |
| 34 | ManagedFiles.emplace(Name, Path); |
| 35 | return true; |
| 36 | } |
| 37 | |
| 38 | std::string SourceFileManager::getFilePath(std::string Name) const { |
| 39 | auto Iter = ManagedFiles.find(Name); |