Is there a way to check if particular file is synced or not?

Is there a way to check if particular file is synced or not using API of syncthing?

I tried this https://docs.syncthing.net/rest/db-file-get.html but I am getting error: SyncthingError: http request error

My api request:

api_key="mysynchtingtoken"
s = Syncthing(api_key)
s.db.file('default','/Configs/cron_config.json')

Can anybody help please.

I don’t know what api library you’re using, but files names in the folder are usually not absolute. That is, try removing the leasing slash.

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