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

Implement createTempDirectory #22

Open
bamos opened this issue Sep 28, 2014 · 0 comments
Open

Implement createTempDirectory #22

bamos opened this issue Sep 28, 2014 · 0 comments

Comments

@bamos
Copy link
Contributor

bamos commented Sep 28, 2014

From 5b6b978#commitcomment-7951862:

That's mostly harmless in this case, since the cache dir is per-application, but racy in general. Sadly, Android doesn't yet seem to have added createTempDirectory from JDK 7. If it were me, I'd probably implement createTempDirectory myself by looping over random suffixes and trying mkdir, rather than leaving a race lurking in the code, but I could see it either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant