cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

Modification dates for directories?

Modification dates for directories?

Keith B.7
Helpful | Level 7

In API 1, DBMetadata would report -clientMTime and -lastModifiedDate dates for any time of meta-data, including folders.

 

In API 2, it seems that -clientModified and -serverModified are only available for DBFILESFileMetadata and not for DBFILESFolderMetadata. So how do I get the modification date for a folder?

 

Thanks,

Keith

4 Replies 4

Re: Modification dates for directories?

Greg-DB
Dropboxer
This isn't available in API v2, but I'll be sure to pass this along as a feature request.

Re: Modification dates for directories?

Keith B.7
Helpful | Level 7

Ouch. My whole caching method relies on storing a date against every file and folder. That's a bit of a blow for a smooth transition...

Re: Modification dates for directories?

Greg-DB
Dropboxer
Can you elaborate a bit on your use case and usage of these timestamps? I'll be happy to pass it along as feedback to the team.

Even on API v1, the "modified" time for a folder didn't reflect changes inside that folder, so I wouldn't expect it to be very useful for caching.

Re: Modification dates for directories?

Keith B.7
Helpful | Level 7

Hmm, revisiting the code, it seems I mainly used the modification dates against folders for consistency with the way files were cached. The problem is less that they are needed for any comparison and more that the cached database file saves folder names against the dates. I should just be able to use any date for folders without it causing any problems, I think.

 

Thanks,

Keith

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Keith B.7 Helpful | Level 7
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?