From 99f930b7796aadd1e30517b8ce81d3f5b76af312 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 4 Mar 2018 12:57:51 +0200 Subject: [PATCH] checkout: use is_dir_cache Signed-off-by: Ruslan Kuprieiev --- dvc/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/output.py b/dvc/output.py index 0f574baba..405c9f163 100644 --- a/dvc/output.py +++ b/dvc/output.py @@ -280,7 +280,7 @@ class Output(Dependency): self.project.logger.debug(msg.format(self.dvc_path)) self.remove() - if os.path.isfile(self.cache): + if not self.is_dir_cache(self.cache): self.hardlink(self.cache, self.path) return