Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Total number of files limit of FAT filesystem #76

Open
yuwentw opened this issue Nov 28, 2014 · 2 comments
Open

Total number of files limit of FAT filesystem #76

yuwentw opened this issue Nov 28, 2014 · 2 comments

Comments

@yuwentw
Copy link

yuwentw commented Nov 28, 2014

In FAT filesystem, which is the default filesystem for external SD Card, we can only store around 15 ~ 20k files in a directory. In most cases, it shouldn't be a problem. But when I need to cache a lot of small images with DiskLruCache, it brings this issue to me.

Hence, I would like to know if it's possible to create the sub-directory within DiskLruCache's cahce directory so we can solve this issue for good.

FAT filesystem limit information: http://stackoverflow.com/questions/2651907/is-there-a-limit-for-the-number-of-files-in-a-directory-on-an-sd-card

@clyang
Copy link

clyang commented Dec 1, 2014

Having the same issue here. Luckily enough my Android app is for internal usage only so I can ask my users to use exFAT to avoid this issue.

@JakeWharton
Copy link
Owner

A possible solution as part of #71 we could relax key restrictions and allow specifying hierarchical keys which would allow you to partition your keys based on some prefix (even if it's just the first two characters of an MD5 for example).

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

No branches or pull requests

3 participants