From b683ef027b2d96c7cd6c7f895a0437a03567dc05 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 17 Jun 2010 10:27:42 -0300 Subject: [cachestore] Properly clean the cache Propertly clear the cache after a version invalidation. Send in the full filename to unlink, not just the basename. --- giscanner/cachestore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py index 70ca00ad..d839ef58 100644 --- a/giscanner/cachestore.py +++ b/giscanner/cachestore.py @@ -135,7 +135,7 @@ class CacheStore(object): for filename in os.listdir(self._directory): if filename == _CACHE_VERSION_FILENAME: continue - self._remove_filename(filename) + self._remove_filename(os.path.join(self._directory, filename)) def store(self, filename, data): store_filename = self._get_filename(filename) -- cgit v1.2.1