[Bug]: V4.0.0 - a folder, a subfolder with the same name as the parent folder is created
⚠️ 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 and Desktop Releases for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct
Bug description
In NC Client 4.0.0, in a fresh install, After proceeding with the the initial sync, if the user enters a folder, a subfolder with the same name as the parent folder is "created"
Steps to reproduce
- Install the desktop client V4.0.0 (it must be a fresh install)
- connect an account
- Start entering any folder structure. the issue will start to manifest
Expected behavior
No subfolder should be created.
Which files are affected by this bug
Folders only
Operating system
Windows
Which version of the operating system you are running.
Windows 11
Package
Official Windows MSI
Nextcloud Server version
31.0.8
Nextcloud Desktop Client version
4.0.0
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?
- [x] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Nextcloud Server logs
Additional info
No response
We are seeing this issue after upgrade from 3.17.3 Windows 11.
Seeing this as well after the update on Windows 10. Also cool that the update starts even after dismissing the popup.
same for me 😔
Yes, I also encountered this problem after updating to 4.0 today, but I didn't do a fresh installation; it was an automatic update to 4.0. I manually deleted the folder that was automatically created, but after a few hours the parent folder was automatically created again. I intend to temporarily downgrade.
This bug is terrible. I think it would be good to pull release 4.0.0 from the update channels.
I'm experiencing this too. Steps to reproduce (v4.0.0 on Windows 11):
- Add a new file on the desktop client
- Wait for the desktop client to sync
- A new empty directory will appear, named after the parent directory
That directory is impossible to delete. Attempts to do so result in a "remote file not found" error. Attempting to create a directory with the same name via Web UI does not trigger a sync, but allows deleting the directory on the client. Sadly, the directory reappears almost immediately afterwards.
This should be fixed ASAP, as I don't feel confident in using Nextcloud as long as there's a risk this bug could mess with my data.
same for me... on multiple instances/ mostly on Win11
this is unbelievable ... how can sth. like this go live?! Every release i have less arguments to keep using NC for a productive environment.
Same here even when i delete the folder it comes back again when i sync back up. This only happens on the PC Version not on the phone. on the phone it is normal
The same issue occurs here on Windows 11. I installed NC Client 4.0.0 over 3.17.3 this morning. I noticed that two identical subdirectories are created at each sync, up to three levels deep: my-new-dir > my-new-dir > my-new-dir. I rolled back immediately to avoid a major mess in my data.
The same issue occurs here on Windows 11. I installed NC Client 4.0.0 over 3.17.3 this morning. I noticed that two identical subdirectories are created at each sync, up to three levels deep: my-new-dir > my-new-dir > my-new-dir. I rolled back immediately to avoid a major mess in my data.
Same problem, can you help me how to roll back, these ghost folders are extremely confusing..
I confirm, for us that is append after automatic update to 4.0
for the time being you may want to give a recent daily build >= 20251023 a try: https://download.nextcloud.com/desktop/daily/windows/
That build contains the merged PR from yesterday which should resolve the creation of these subfolders.
for the time being you may want to give a recent daily build
>= 20251023a try: https://download.nextcloud.com/desktop/daily/windows/That build contains the merged PR from yesterday which should resolve the creation of these subfolders.
Hello, I installed the new daily build and rebooted PC, but the issue still persists.
@fsomenzi-ita do these folders disappear if you create a new file somewhere?
Can confirm, this happened also for me
I think it would be safer to stop automatic updates to version 4.0 until this issue is fixed.
The bug can easily break the local folder structure by creating duplicate subfolders (same name as parent), which is confusing and potentially risky for end users.
Please freeze automatic updates on 4.0 and keep 3.13.x as the latest recommended stable version until a corrected 4.0.x is released.
Can someone please explain to me how I roll back to the last (correctly working) 3.x version?
Can someone please explain to me how I roll back to the last (correctly working) 3.x version?
I assume you can just download and install the latest release before 4.0.0, see here: https://github.com/nextcloud-releases/desktop/releases/tag/v3.17.3
I think it would be safer to stop automatic updates to version 4.0 until this issue is fixed.
The bug can easily break the local folder structure by creating duplicate subfolders (same name as parent), which is confusing and potentially risky for end users.
Please freeze automatic updates on 4.0 and keep 3.13.x as the latest recommended stable version until a corrected 4.0.x is released.
Yeah, i was working on a C++ project and lost a lot of edits i made. Fortunately i had Git but this can be devastating