Determining Box Sync status under Windows?
Is there an API, tool or trick to determine whether Box Sync has finished syncing all files (or those in a particular folder) via script or program under Windows? (short of asking the user of (s)he's seeing blue check marks :-))
Thanks!
-
Hi ,
I don't believe there is a specific API call for Sync statuses. Could you tell us more about how you would use this at your company?
The Box Community team shares selected conversations on the community back to other Box teams from time to time, including product feedback. However, if you'd like to provide direct feedback you can always submit a case to Box support.
Thanks for your help and time in the Community!
-
My current need for it is a little involved to explain (very fancy! :-)), but generally speaking imagine that a reorganization of every user's Box contents needs to be performed in an automated fashion, involving say the merging of certain folders: based on careful experimentation, if a subfolder of a user's "Box Sync" folder is merged into another (its contents moved into the other and the original deleted) *before* it has fully synced down, the folder and its as yet unsynced contents are deleted from (cloud) Box (not to mention that some of the "successfully" merged files may have been caught mid-sync and may therefore be corrupted). It's important therefore that the merge operation only be undertaken once the folder's entire contents are present locally. Best I can do without an official way to determine sync status is to monitor the folder in question (say via regular full-folder hash calculations) and wait for the contents to "stabilize" (i.e. multiple consecutive identical hashes) before starting the merge operation (while praying that Box Sync wasn't just taking a long break!)
Since the Sync status is available to the user (e.g. at the top of the Box Sync's tray icon's context menu), I'm surprised that there's no programmatic way to access the same information. I haven't found the Box Sync log file to be particularly readable for my purposes, and I'd bet the information I seek is buried somewhere in Box Sync's SQLite databases (so useless to me).
And there we are. Thanks for the reply though. If you can kick the question up to a Box Sync developer, that'd be very much appreciated.
-
Similar use case.. .. we are :
a) Pick a list of users
b) For each user
i) move files matching specific extensions to a sub-folder under their current home folder (Moved_to_Box)
ii) copy file to Box under the users folder location
iii) Ensure Sync is complete for that user
iv) Mark the "Moved to Box" folder under the user profile read-only
Please sign in to leave a comment.
Comments
3 comments