-rw-r--r-- | cache.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -12,3 +12,3 @@ const int NOLOCK = -1; -int cache_lookup(struct cacheitem *item) +void cache_prepare(struct cacheitem *item) { @@ -32,2 +32,6 @@ int cache_lookup(struct cacheitem *item) } +} + +int cache_exist(struct cacheitem *item) +{ if (stat(item->name, &item->st)) { |