From 673afe20b1e859ba09c1d98da7ec33ff5abff7a4 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Thu, 30 Jan 2020 10:28:02 -0600 Subject: [PATCH] diff: be windows friendly at file counting --- dvc/command/diff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/command/diff.py b/dvc/command/diff.py index 705111ed8..fdf8657da 100644 --- a/dvc/command/diff.py +++ b/dvc/command/diff.py @@ -1,6 +1,7 @@ import argparse import json import logging +import os import colorama @@ -66,7 +67,7 @@ class CmdDiff(CmdBase): for entry in entries: path = entry["path"] checksum = entry.get("checksum") - summary[state] += 1 if not path.endswith("/") else 0 + summary[state] += 1 if not path.endswith(os.sep) else 0 content.append( "{space}{checksum}{separator}{path}".format( space=" ",