From 9bdbe279dd0bf0024479feed88d315e37ce54f00 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 19 Jul 2020 20:21:25 +0300 Subject: [PATCH] tree: use cache.tree to check if cache file exists (#4244) Continuing #4050 This issue was found in #4242 --- dvc/tree/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/tree/base.py b/dvc/tree/base.py index 3b8a0f58f..f860dcecd 100644 --- a/dvc/tree/base.py +++ b/dvc/tree/base.py @@ -271,7 +271,9 @@ class BaseTree: if ( hash_ and self.is_dir_hash(hash_) - and not tree.exists(self.cache.tree.hash_to_path_info(hash_)) + and not self.cache.tree.exists( + self.cache.tree.hash_to_path_info(hash_) + ) ): hash_ = None