- Open the GUI of a clean Syncthing installation. The default folder list should look like this.

- Add a new folder pointing to the exactly same path as the "Default Folder".

- Remove the newly created folder using the GUI, and "rescan" the "Default Folder".

The following error message is shown,
Error on folder "Default Folder" (default): folder marker missing
and the folder is not being synced anymore.
I think that it would be useful if Syncthing did not remove .stfolder in a case where the same folder is still being shared in other places.
One can ask, why would you share the same folder multiple times? I personally have encountered this error when trying to share a folder from Android, and then realising that I would rather share a folder from a different device which would point at the same path. Thus, I accepted the newly shared folder, and then removed the one created previously in Android, as it was no longer needed. The result of the operation was as above.
This was just a simple mistake of mine, but I can also easily imagine valid reasons for sharing the same folder multiple times, such as having different ignore patterns for each of them, etc. In addition to that, to actually fix the problem, one needs to manually recreate the missing .stfolder which, depending on the operating system, may not be straightforward.
Version Information
Syncthing Version: v1.3.0
The following error message is shown,
Error on folder "Default Folder" (default): folder marker missingand the folder is not being synced anymore.
I think that it would be useful if Syncthing did not remove
.stfolderin a case where the same folder is still being shared in other places.One can ask, why would you share the same folder multiple times? I personally have encountered this error when trying to share a folder from Android, and then realising that I would rather share a folder from a different device which would point at the same path. Thus, I accepted the newly shared folder, and then removed the one created previously in Android, as it was no longer needed. The result of the operation was as above.
This was just a simple mistake of mine, but I can also easily imagine valid reasons for sharing the same folder multiple times, such as having different ignore patterns for each of them, etc. In addition to that, to actually fix the problem, one needs to manually recreate the missing
.stfolderwhich, depending on the operating system, may not be straightforward.Version Information
Syncthing Version: v1.3.0