Right now the library can display files and folders. Add another state to the picker to handle saving. Users can pick a folder location and then set the name. Afterwards, it calls back to your app to complete the file writing process to that location.