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

Include CACHEDIR.TAG file in our cache directory #7298

Open
lagru opened this issue Jan 17, 2024 · 2 comments
Open

Include CACHEDIR.TAG file in our cache directory #7298

lagru opened this issue Jan 17, 2024 · 2 comments

Comments

@lagru
Copy link
Member

lagru commented Jan 17, 2024

Description:

scikit-image creates a cache directory with skimage.data.download_all. We should probably include a CACHEDIR.TAG file inside to mark it as such. See https://bford.info/cachedir/. As far as I am aware it's not an official spec or anything (yet). But pytest / mypy already do so, and there's discussion to do it for cpython. So if we get around to it, it's easy enough to do...

@mkcor mkcor changed the title Include CACHDEDIR.TAG file in our cache directory Include CACHEDIR.TAG file in our cache directory Jan 19, 2024
@mkcor
Copy link
Member

mkcor commented Jan 19, 2024

Upvoting 👍

I wasn't aware of this convention, thanks for sharing!

@stefanv
Copy link
Member

stefanv commented Jan 20, 2024

CACHEDIR.TAG is fine to add; just had to 🙄 at:

This signature header is required to avoid the chance of an unrelated file named CACHEDIR.TAG being mistakenly interpreted as a cache directory tag by data management utilities, and (for example) causing valuable data not to be backed up.

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

3 participants