Skip to main content
1 of 6
tukan
  • 2.3k
  • 13
  • 20

If you are on linux it is quite easy. During the sync process you can do:

find $HOME/dropbox_sync_dir -type f -exec dropbox.py file status -a '{}' \; | grep 'syncing'

Explaining details:

  • find <path> -type f -exec dropbox.py ... '{}' \;

Runs dropbox.py on every file or below the current directory.

Notice that the braces are enclosed in single quote marks to protect them from interpretation as shell script punctuation. The semicolon is similarly protected by the use of a backslash, though single quotes could have been used in that case also.

More on man find pages

  • dropbox.py file status -a from the dropbox linux client manual:

     dropbox file status  [-l] [-a] [FILE]…
    
     Prints the current status of each FILE.
    
       Options:
    
        -l or --list prints out information in a format similar to the native Linux command ls.
        -a or --all do not ignore entries starting with "."
    
    Aliases include stat.
    
  • | grep 'syncing'

Searches for the 'syncing' string.

Note: that the .py end should not be mandatory there should be an alias so writing just dropbox should be enough.

tukan
  • 2.3k
  • 13
  • 20