We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Caram
11 years agoNew member | Level 1
listDatastoreInfo.mtime can be nil
I have this issue where datastoreInfo.mtime is nil for some of my datastores. I would expect that it can never be nil. This is all the more curious that datastore.mtime is never nil for the sam...
Greg-DB
Dropbox Community Moderator
11 years agoThe mtime on both DBDatastore and DBDatastoreInfo can be nil, per the documentation:
https://www.dropbox.com/developers/datastore/docs/ios#DBDatastore.mtime :
The last modified time for this datastore, or nil if no data has been synced yet.
https://www.dropbox.com/developers/datastore/docs/ios#DBDatastoreInfo.mtime :
The last modified time for this datastore, or nil if none is set.
The fact that one is nil when the other isn't though is a little surprising. When does this happen exactly? Can you supply some sample code?
Also, are you sure you're looking at the same datastore in your output here? That is, store.mtime, is referring to a specific datastore, but store.manager.listDatastoreInfo(nil).select... seems to be looking for any DBDatastoreInfo where mtime is nil.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!