MCPcopy Create free account
hub / github.com/SpartanJ/eepp / loadFromFolder

Method loadFromFolder

src/eepp/ui/doc/syntaxdefinitionmanager.cpp:1173–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171}
1172
1173void SyntaxDefinitionManager::loadFromFolder( const std::string& folderPath ) {
1174 if ( !FileSystem::isDirectory( folderPath ) )
1175 return;
1176 auto files = FileSystem::filesInfoGetInPath( folderPath );
1177 if ( files.empty() )
1178 return;
1179 for ( const auto& file : files ) {
1180 if ( file.isRegularFile() && file.isReadable() && file.getExtension() == "json" )
1181 loadFromFile( file.getFilepath() );
1182 }
1183}
1184
1185std::vector<const SyntaxDefinition*>
1186SyntaxDefinitionManager::languagesThatSupportExtension( std::string extension ) const {

Callers 3

initMethod · 0.80
exportLanguagesFunction · 0.80
mainFunction · 0.80

Calls 4

isRegularFileMethod · 0.80
isReadableMethod · 0.80
getExtensionMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected