nextcloud / nextcloud/desktop

[Bug]: Number of files the Windows Desktop Client checks is a lot more files than exist

Open
#8,147 3 comments 2 reactions 1 assignee Claimed by @mgallien View on GitHub
1. to develop feature: :arrows_counterclockwise: sync engine Performance 🚀 Prio: normal
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 17h
Merged PRs (30d)
123

Description

### ⚠️ Before submitting, please verify the following: ⚠️

- [x] This is a **bug**, not a question or a configuration issue.
- [x] This issue is **not** already reported on Github (I've searched it).
- [x] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)

### Bug description

There are too many files being checked before it starts syncing. Surely we could start syncing after it finds the first file?

![Image](https://github.com/user-attachments/assets/164bea48-840a-44f8-a475-8ce61d81c2dd)

![Image](https://github.com/user-attachments/assets/2f042d68-5d74-4fe2-ac4d-ea68fbb9176e)

### Steps to reproduce

1. Open the Sync Dialog on Windows client.
2. Look at how many files it is checking.
3. Compare this to how many files Windows says we have.

### Expected behavior

When opening the Sync dialog it should only check the number of files I have, not more. Ideally I'd even see it transferring before it finishes checking, and sync files in parallel.

### Which files are affected by this bug

Windows desktop client / syncing

### Operating system

Windows

### Which version of the operating system you are running.

Windows 11

### Package

Official Windows MSI

### Nextcloud Server version

30.0.5

### Nextcloud Desktop Client version

3.16.2

### Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

### Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

### Are you using an external user-backend?

- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other

### Nextcloud Server logs

```shell

```

### Additional info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.