Vincent
06/21/2024, 6:12 AMאליהו הדס
06/21/2024, 9:03 AMorangy
List<PlatformFile>
orangy
rememberFileSaverLauncher
so that it doesn't require bytes on launch
, but rather hands me path to onResult
so that I can decide what to do myself when the user chooses a path?Vincent
06/21/2024, 6:12 PMPickerMode.Multiple
, the result is automatically casted to List<PlatformFile>
. But we can select only one folder at the same time.
About the possibility to not pass bytes when calling the file saver, it's a good idea and definitively possible to implement! I'm going to look into it next days.Stefan Oltmann
06/24/2024, 4:04 PMVincent
06/24/2024, 6:15 PMVincent
06/24/2024, 6:23 PMbytes
parameter is now optional when saving a file. It'll create an empty file in that case. It's working on all platform except on the web (WASM / Js). Here is the doc about it: docorangy
Vincent
06/24/2024, 8:39 PMreadBytes()
or getSize()
on the returned platform file, it will crash. But I supposed it is the responsibility of the developer to prevent that case? I'll probably do the modification 👌
Thank you so much for your comment, I glad to contribute to the community kodee happyorangy
exists
check on the platform file to cover these cases. And make it a contract - no file is created/modified, we just give you a path. Kinda symmetrical to picking a file, you don’t read it and give user bytes, do you?orangy
Stefan Oltmann
06/26/2024, 8:30 AMPHondogo
06/27/2024, 3:49 AMPHondogo
06/27/2024, 7:32 AMStefan Oltmann
06/27/2024, 8:12 AMPHondogo
06/27/2024, 8:15 AM