[Bug]: after renaming an ignored empty folder on windows: it stays pending sync forever
- 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
if a local folder is ignored (i.e. the name matches ignore patterns), the desktop files client will not sync it to the server.
in files explorer, the status icon will be empty (i.e. no status icon)
once you rename it such that it will be synced to the server, the status icon will be pending sync forever
### Steps to reproduce
1. Create a new folder
2. Rename it to `testIgnore`
3. Wait for sync to happen
4. Add a rule to ignore all items with pattern: `*.msg`
5. Rename `testIgnore` to `testIgnore.msg`
6. Wait for sync to happen
7. Rename `testIgnore.msg` to `testIgnore`
8. Wait for sync to happen
9. Checks status icon in explorer
### Expected behavior
Folder gets the cloud status icon meaning that an empty folder is in sync with server
### Which files are affected by this bug
n/a
### Operating system
Windows
### Which version of the operating system you are running.
windows 10
### Package
Other
### Nextcloud Server version
28.0.3
### Nextcloud Desktop Client version
master branch
### 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 Disabled
### Are you using an external user-backend?
- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
_No response_
### Additional info
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.