flutter_file_picker icon indicating copy to clipboard operation
flutter_file_picker copied to clipboard

Automatically saving files to `getDirectoryPath()` directories

Open derdilla opened this issue 6 months ago • 1 comments

On android the ACTION_OPEN_DOCUMENT_TREE intent started when calling FilePicker.platform.getDirectoryPath() grants more permanent permissions than exposed through the file_picker api. Specifically it allows saving files without asking for permissions again, which is useful in the context of reoccurring exports.

My suggestion is that since in FilePicker.platform.saveFile the initialDirectory parameter isn't implemented on android, it could be used to attempt save a file to a previously picked directory.

derdilla avatar Aug 08 '24 20:08 derdilla