Skip to content
Discussion options

You must be logged in to vote

You should be able to put it in the data/ directory of your module, and then access it like Rust does:

public static int addExtensions(Program program, TaskMonitor monitor, String subPath)
throws IOException {
Processor processor = program.getLanguageCompilerSpecPair().getLanguage().getProcessor();
ResourceFile module = Application.getModuleDataSubDirectory(processor.toString(),
RustConstants.RUST_EXTENSIONS_PATH + subPath);
int extensionCount = 0;
ResourceFile[] files = module.listFiles();
if (files != null) {

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fmagin
Comment options

@ryanmkurtz
Comment options

Answer selected by fmagin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants