arban gjyzari
arban gjyzari

Reputation: 11

flutter how to open a specific directory using file_picker

I'm trying to open the application documents directory, where the app is going to store some files, but I can't get it to work. Using file_picker, I only can open the external storage, which isn't what I need. Any help regarding this would be greatly appreciated!

Upvotes: 0

Views: 866

Answers (1)

Simon Hutton
Simon Hutton

Reputation: 1777

You can use the flutter path_provider package to get the application documents directory

getApplicationDocumentsDirectory()
    .then((directory) => myAppDocsDirectory = directory);

.. then use file_picker with myAppDocsDirectrory

Upvotes: 1

Related Questions