Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use NSCachesDirectory... #141

Merged
merged 1 commit into from Oct 22, 2019
Merged

Use NSCachesDirectory... #141

merged 1 commit into from Oct 22, 2019

Conversation

kltdwrds
Copy link
Contributor

@kltdwrds kltdwrds commented Oct 19, 2019

instead of NSTemporaryDirectory

NSCachesDirectory is better suited for this use case -- it's cleared when storage is running low, but not cleared arbitrarily / on restart :) It's also the directory that the officially supported path_provider package returns upon calling it's getTemporaryDirectory() method.

path_provider Packaged referenced here:
https://pub.dev/packages/path_provider
https://flutter.dev/docs/cookbook/persistence/reading-writing-files

instead of NSTemporaryDirectory

NSCachesDirectory is better suited for this use case -- can be cleared when storage is running low, but not cleared arbitrarily / on restart :) 

NSCachesDirectory is the directory that the officially supported `path_provider` package returns upon calling it's `getTemporaryDirectory()` method.

path_provider Packaged referenced here:
https://pub.dev/packages/path_provider
https://flutter.dev/docs/cookbook/persistence/reading-writing-files
@hyochan hyochan added the enhancement New feature or request label Oct 22, 2019
Copy link
Collaborator

@hyochan hyochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants