Syncthing check if folder has completed synchronization

By querying a folderID using rest API call is it possible for me to check if it has succesfully finished synchronization? I know ItemFInishedApi call exists … but I want to query per folder rather than gettting all the folder Ids which have completed synchronization.

https://docs.syncthing.net/rest/db-completion-get.html

1 Like

I explored both the /db-completion and the /db-status call. The /db-completion was taking more time for large folders. I am planning on using the /db-status needBytes parameter.But in the document provided it is mentioned that this is an expensive call : https://docs.syncthing.net/rest/db-status-get.html I plan to run this for around 2000 folders. What does expensive mean here ?

That calling it causes Syncthing to do a bunch of database operations to figure out the answer; expensive == slow, basically.

1 Like

there is no such warning for /rest/db/completion. Between the 2 calls is rest/db/status more expensive in terms of time as well ?

I don’t know, you can experiment.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.