dvc: do not check for isdir on recursive out collect

The things is we create dirs as needed, so if outs are not checked out a
directory contraining nothing but outs may be absent.
This commit is contained in:
Alexander Schepanovski
2020-01-31 19:36:36 +07:00
parent d864caf79b
commit 6545d2178b
+1 -2
View File
@@ -399,14 +399,13 @@ class Repo(object):
abs_path = os.path.abspath(path)
path_info = PathInfo(abs_path)
is_dir = self.tree.isdir(abs_path)
match = path_info.__eq__ if strict else path_info.isin_or_eq
def func(out):
if out.scheme == "local" and match(out.path_info):
return True
if is_dir and recursive and out.path_info.isin(path_info):
if recursive and out.path_info.isin(path_info):
return True
return False