My Android app is using install-time Play Asset Delivery to deliver all my game's assets. This asset folder is an arbitrary hierarchy of directories that I need to copy verbatim into my app's file system.
How can I copy this directory structure when AssetManager only provides an InputStream?
I'd like to use something simple like this but it doesn't work.
val assetRoot = assetManager.open("/") val gameDataRoot = FileOuputStream("/gamedata/") assetRoot.copyTo(gameDataRoot) Is there some other approach that would work?