So, as is documented, Android doesn’t have resourceDirectory due to the resources actually being in an .APK and thus will only be extracted if required. However, this means that we cannot figure out what is in a directory on Android at all - as lfs.dir will not work as there is no directory to scan through.
Is there any other workaround than generating the filelist manually every time a file is added? Custom build steps would be pretty useful (and simple to do) for this (not to mention a lot of other stuff), even if adding system.getFilesInPath() is too much to ask.