Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does flutter app erase files,data which wrote to application document directory when new launches

Tags:

flutter

dart

I was trying to load which was written to application document directory in previous session.But It doesn't load in new session.Is there any configuration.

File was written to application documentary using file.copy method.

like image 612
Axen_Rangs Avatar asked Dec 10 '25 20:12

Axen_Rangs


1 Answers

Temporary directory
A temporary directory (cache) that the system can clear at any time. On iOS, this corresponds to the NSCachesDirectory. On Android, this is the value that getCacheDir() returns.

Documents directory
A directory for the app to store files that only it can access. The system clears the directory only when the app is deleted. On iOS, this corresponds to the NSDocumentDirectory. On Android, this is the AppData directory.

This is taken directly from flutters website you can read more about it here

like image 90
wcyankees424 Avatar answered Dec 13 '25 10:12

wcyankees424



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!