cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Find out how Tiffany, a Customer Experience superstar uses Dropbox to keep her family in the loop when it comes to her new baby here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can the API be used to force a sync while PC is asleep

Can the API be used to force a sync while PC is asleep

datanerd916
New member | Level 2

I have a python script running on a Windows server that writes a file to a local folder in the middle of the night, but dropbox does not sync until the next time I manually log into the box.  Is there a way to include an API call in my python script that will force an immediate sync as soon as my file is written without requiring any manual intervention?

1 Accepted Solution

Accepted Solutions

Re: Can the API be used to force a sync while PC is asleep

Greg-DB
Dropboxer

The Dropbox API does not offer functionality for controlling the desktop client like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

 

You may want to consider instead using the Dropbox API to upload the file, which is done by communicating directly with the Dropbox API servers (and not the local filesystem/client). We have an official Python SDK, and the Getting Started and File Access guides may be helpful.

View solution in original post

2 Replies 2

Re: Can the API be used to force a sync while PC is asleep

Greg-DB
Dropboxer

The Dropbox API does not offer functionality for controlling the desktop client like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

 

You may want to consider instead using the Dropbox API to upload the file, which is done by communicating directly with the Dropbox API servers (and not the local filesystem/client). We have an official Python SDK, and the Getting Started and File Access guides may be helpful.

View solution in original post

Re: Can the API be used to force a sync while PC is asleep

datanerd916
New member | Level 2

Thank you! I was able to do it the way you suggested

Who's talking

Top contributors to this post

  • User avatar
    datanerd916 New member | Level 2
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?