| 1132 | } |
| 1133 | |
| 1134 | std::pair<SymbolId, std::string_view> PlatformFileSystem::getType( |
| 1135 | PathId id, SymbolTable *symbolTable) { |
| 1136 | if (!id) return {BadSymbolId, BadRawSymbol}; |
| 1137 | |
| 1138 | const std::filesystem::path filepath = toPath(id); |
| 1139 | if (!filepath.has_extension()) { |
| 1140 | return {BadSymbolId, BadRawSymbol}; |
| 1141 | } |
| 1142 | |
| 1143 | return symbolTable->add(filepath.extension().string()); |
| 1144 | } |
| 1145 | |
| 1146 | void PlatformFileSystem::printConfiguration(std::ostream &out) { |
| 1147 | out << "=== FileSystem Configuration ===" << std::endl; |
no outgoing calls