cybozu-go / aptutil

Go utilities for Debian APT repositories
MIT License
125 stars 29 forks source link

Add a suffix to cache file names #2

Closed ymmt2005 closed 8 years ago

ymmt2005 commented 8 years ago

Suppose a URL path "/foo/bar" is cached and stored as "foo/bar". This prevents another URL path "/foo/bar/zot" being cached as it needs to create "foo/bar" as a directory, but a regular file has already been there.

To resolve this issue, Storage adds a consistent prefix (".cache") to the cache file names.