graalvm

igrishaev 2025-01-03T13:11:36.982059Z

Does anyone know how to list a resource directory after a binary file has been compiled? The io/resource function returns a URL like “resource:/migrations”, but how can I list its content assuming it has nested files?

borkdude 2025-01-03T13:33:58.136009Z

I'm not sure if this is possible. Ask in the GraalVM Slack community if you don't get an answer here, but one option is to capture the filenames at compile time?

igrishaev 2025-01-03T13:37:35.491709Z

Neither I am. I’ve gone through a series of Github/Stackoverflow pages but none of them mentions this. Capturing seems a bit questionable, perhaps the binary file should rely on a local directory. Baking it into a resource causes too much troubles

borkdude 2025-01-03T14:07:01.745339Z

since you know this info at compile time, I don't see why one wouldn't

borkdude 2025-01-03T14:07:19.917709Z

but yeah, an external dir would be easier to work with (and also more flexible)