cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Check sync status of dropbox app, programmatically via c++ or api

Explorer | Level 4

I wonder if it is possible to tell when dropbox is syncing programmatically,

ideally indirectly via c++

for example let's assume that when dropbox is syncing it writes a tinly .txt or .xml etc file somewhere in its programFiles directory

a developer can check that file (read only) and get dropbox status?

or via the dropbox api??

 

kind regards..

8 Replies 8
Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Dropboxer
Dropboxer

No, unfortunately Dropbox doesn't offer a way to check the client status programmatically, but I'll pass this along as a feature request. 

Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Super Collaborator | Level 20

Hi @Greg K.,

Actually it's possible, but is platform dependent and available only for Dropbox on Linux. Take a look in the socket "~/.dropbox/command_socket".

@Kyri, If your platform is Linux, you are happy, otherwise - have to hope something will change.

Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Explorer | Level 4

I am currently using Windows SRV for this project unfortunately

 

 

Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Dropboxer
Dropboxer

Thanks for sharing that additional information @Здравко . Please note though that that socket itself is not officially documented and is not considered an officially supported API for third parties to use to interact with the Dropbox desktop client, so I can't recommend using it. (It's meant for the dropbox.py script we offer for managing the client on Linux via the CLI. One could technically program against the commands offered by that script, but it's not meant as a programmatic interface like the API is.)

Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Super Collaborator | Level 20

May be that's a serious Dropbox drawback and have to be considered seriously.

Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Dropboxer
Dropboxer

@Здравко Thanks for the feedback! Yes, I've filed this as a feature request for an official API for checking the client programmatically.

Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Super Collaborator | Level 20

Hi @Greg K.,

I hope you can add to the feature request, "~/.dropbox/command_socket" related, also support for "~/.dropbox/iface_socket" socket. The second one isn't only available on Linux, but also on Mac. Documentation for, already available, interfaces would be helpful and could meet many applications in practice. These interfaces wasn't changed for least 4-5 years (might be more), so it's finally time to be documented (and got supported officially).

Highlighted

Re: Check sync status of dropbox app, programmatically via c++ or api

Dropboxer
Dropboxer

@Здравко Thanks for the additional note and information!

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?