vinceglb / FileKit

Pick and save Files, Medias and Folder for Kotlin Multiplatform / KMP and Compose Multiplatform / CMP
https://vinceglb.github.io/FileKit/
MIT License
465 stars 16 forks source link

Feature to pick and store files from a specific path without File Picker #69

Open Vaibhav2002 opened 1 month ago

Vaibhav2002 commented 1 month ago

Is it possible to add a feature to directly pick and store file to a specific path in the allowed Media Directories of the platform without the need of any File Picker/Folder Selector UI?

vinceglb commented 1 week ago

Hi @Vaibhav2002! Sorry for the late response!

To be sure to understand exactly, do you want to be able to save a file from a specific path? Without the need to open any windows or anything?

Something like this:

val file = File("/my/path/file.png")
file.save(bytes)
Vaibhav2002 commented 1 week ago

Hey @vinceglb , Yes something like that for Android and iOS, so I can directly save to device's downloads, photos etc folder and retrieve file.

My use case is sharing screenshots, so I need to save and retrieve that exact file in a format which is shareable