X-Git-Url: http://git.treefish.org/~alex/photosort.git/blobdiff_plain/7027dd05f6a97b7d0537cb393e58080b16a71ec5..e0c370052ee9eb666f7ca31a26c0f3fd13e0cf2e:/src/locator.py diff --git a/src/locator.py b/src/locator.py index 3b866f8..da74d18 100644 --- a/src/locator.py +++ b/src/locator.py @@ -22,13 +22,7 @@ class Locator: (name, size, meta_time)) cached = c.fetchone() if cached: - if os.path.isfile(cached[0]) and \ - os.path.getsize(cached[0]) == size and \ - misc.extract_meta_time(cached[0]) == meta_time: - self._update_cache_access_time(name, size, meta_time) - return cached[0] - else: - self._remove_from_cache(name, size, meta_time) + return cached[0] else: file_dir = misc.find_file(self._base_dir, name, size, meta_time, self._exclude_dir)