nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
2.97k stars 784 forks source link

[Bug]: Don't delete excluded files #5402

Open sedrubal opened 1 year ago

sedrubal commented 1 year ago

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

Bug description

When you exclude a subdirectory of a sync connection, the local files will be deleted.

Steps to reproduce

  1. Create a sync connection
  2. Create a local directory as sub path of the sync connection. Add a file to this folder
  3. In the nextcloud sync settings, exclude this sub path from syncing
  4. The files will be deleted

Expected behavior

Nextcloud desktop should ask: "Do you want to delete the local files or just ignore them?"

Which files are affected by this bug

?

Operating system

Linux

Which version of the operating system you are running.

ArchLinux

Package

Distro package manager

Nextcloud Server version

25.0.3

Nextcloud Desktop Client version

arch-6.1.9-arch1-1

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

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

Nextcloud Server logs

No response

Additional info

No response

joshtrichards commented 1 month ago

Related: #2617