| 19 | } |
| 20 | |
| 21 | bool SourceFileManager::addFile(std::string Path) { |
| 22 | auto AbsolutePath = fs::absolute(Path); |
| 23 | if (AbsolutePath.string().find(BaseDir) != 0) |
| 24 | return false; |
| 25 | auto FileName = AbsolutePath.filename(); |
| 26 | auto Result = ManagedFiles.emplace(FileName, AbsolutePath); |
| 27 | return Result.second; |
| 28 | } |
| 29 | |
| 30 | bool SourceFileManager::createFile(std::string Name, std::string Content) { |
| 31 | auto Path = fs::path(getSrcDirPath()) / Name; |