Api: How Do You Find Out If There Is An Ongoing Sync?


Recommended Posts

You can call "Get Folder Peers", it will let you know the timestamp of the last sync. Also, it will show you the upload and download values, which represent the necessary amount of data to be transferred. If both are zero - no sync is going now and folders are synced.

Link to comment
Share on other sites

  • 2 weeks later...

For my use case I have a bunch of selective sync folders like this:

 

 * folder 1 (secret 1)/subfolder 1

 * folder 1 (secret 1)/subfolder 2

 * folder 1 (secret 1)/subfolder 3

 * folder 2 (secret 2)/subfolder 1

 * folder 2 (secret 2)/subfolder 2

 * folder 3 (secret 3)/subfolder 1

 

Using Get Folder Peers I can find out if the outer most folders are currently syncing, but I can't find out on a subfolder basis. Is there a way to do it?

Link to comment
Share on other sites

I want to be able to tell the difference between these two scenarios:

 

Scenario 1:

 

 * (secret 1)/subfolder 1 is still syncing

 * (secret 1)/subfolder 2 is up to date

 

Scenario 2:

 

 * (secret 1)/subfolder 1 is still syncing

 * (secret 1)/subfolder 2 is still syncing

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.