Skip to content

pull: reports wrong number of files added #9831

Open
@dberenbaum

Description

@dberenbaum

Bug Report

Description

dvc pull doesn't report the number of files actually added.

Reproduce

git clone [email protected]:iterative/dvc-bench.git
cd dvc-bench/data/mnist
dvc pull dataset/train/4

The output of the last command is:

A       dataset/
1 file added and 5843 files fetched

However, thousands of files have been added to dataset/train/4.

Expected

Something like:

A       dataset/
5842 files added and 5843 files fetched

Environment information

Output of dvc doctor:

$ dvc doctor
DVC version: 3.13.3
-------------------
Platform: Python 3.11.4 on macOS-13.4.1-arm64-arm-64bit
Subprojects:
        dvc_data = 2.12.2
        dvc_objects = 0.24.2.dev5+gf17d85e.d20230803
        dvc_render = 0.5.3
        dvc_task = 0.3.0
        scmrepo = 1.1.0
Supports:
        azure (adlfs = 2023.4.0, knack = 0.11.0, azure-identity = 1.13.0),
        gdrive (pydrive2 = 1.16.1),
        gs (gcsfs = 2023.6.0),
        hdfs (fsspec = 2023.6.0, pyarrow = 12.0.1),
        http (aiohttp = 3.8.5, aiohttp-retry = 2.8.3),
        https (aiohttp = 3.8.5, aiohttp-retry = 2.8.3),
        oss (ossfs = 2021.8.0),
        s3 (s3fs = 2023.6.0, boto3 = 1.26.161),
        ssh (sshfs = 2023.4.1),
        webdav (webdav4 = 0.9.8),
        webdavs (webdav4 = 0.9.8),
        webhdfs (fsspec = 2023.6.0)
Config:
        Global: /Users/dave/Library/Application Support/dvc
        System: /Library/Application Support/dvc
Cache types: <https://error.dvc.org/no-dvc-cache>
Caches: local
Remotes: s3, https
Workspace directory: apfs on /dev/disk3s1s1
Repo: dvc, git
Repo.site_cache_dir: /Library/Caches/dvc/repo/42f541a69b4f55212527d8614c82b848

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: data-syncRelated to dvc get/fetch/import/pull/pushbugDid we break something?p2-mediumMedium priority, should be done, but less importantuiuser interface / interaction

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions