- syncthing version:
syncthing v1.20.4 "Fermium Flea" (go1.18.4 linux-amd64) firstname.lastname@example.org 2022-08-02 08:10:29 UTC [noupgrade]
- OS: Ubuntu 22.04
I’ve been trying to (programmatically) get a list of out of sync items for a specific device, basically whatever is displayed in remoteNeededFilesModalView.
From reading the API docs, I figured this is the closest API method there is for this functionality:
curl -X GET -H "X-API-Key: <api key>" http://localhost:8384/rest/db/remoteneed?folder=<folder id>&device=<device ID>
However, the API call seems to return thousands of entries to me while in the web interface I only have a few dozen (they are mostly symlinks and files with special characters that my Android device isn’t able to ‘accept’).
I dug a bit and it seems that this function is responsible for the API call… but can’t tell straightaway what’s the issue syncthing/model.go at b10d106a55cb9e7e2da152206e4ac59fa3549c02 · syncthing/syncthing · GitHub
What am I doing wrong? Thanks!