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?
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?
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
since you know this info at compile time, I don't see why one wouldn't
but yeah, an external dir would be easier to work with (and also more flexible)