<Android + KOTLIN: find folders and store their na...
# stackoverflow
u
Android + KOTLIN: find folders and store their names as string array I have a PHP script which has the ability to automatically find folders and send their names to the client as string so that they can be used in innerHTML buttons. I'd like to do EXACTLY the same thing in my Android app with Android Studio and Kotlin, but I failed to find any specific way to do that. Here's the PHP code that fetches all folder names and stores them as an array: $_SESSION['$folders'] =[] #initiates array $_SESSION['$folders'] = array_filter(glob('*'), 'is_dir'); #finds...