nextcloud / nextcloud/desktop

[Bug]: Ignored files not reliably respected for folders

Open
#8,713 1 comment 2 reactions 0 assignees View on GitHub
1. to develop bug confirmed feature: :arrows_counterclockwise: sync engine Prio: normal
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 17h
Merged PRs (30d)
123

Description

### Bug description

More often than not, folders that should be ignored based on the `sync-exclude.lst` (be it global or per sync / folder), are still uploaded. I observe this for example for `.git` folders, which should be matched by the line `].git/`. It's possibly related to filesystem change watch, because if the folder once is created and properly ignored, it stays ignored. Observed on Mac and Linux platforms.

### Steps to reproduce

1. Add ignore pattern ending with / (possibly this also effects rules not ending in / but not tested)
2. Have some process create a folder with name/path matching the rule or create manually.
3. Folder is uploaded to server.

### Expected behavior

Folder should not be uploaded.

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

Ubuntu 25.04

### Package

Official Linux AppImage

### Nextcloud Server version

31.0.7

### Nextcloud Desktop Client version

3.17.1

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

Updated to a major version (ex. 3.3.6 to 3.4.0)

### Additional info

Omited client debug archive as it didn't seem to contain relevant data, but mostly sensitive data.

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.