Forum Discussion

ajith_kumar2395's avatar
ajith_kumar2395
New member | Level 2
6 years ago

File created date is not listed

I am using list_folder api to get created dates for files it's listed in documentation inside file_lock_info param, But I am not getting this param for files 

https://api.dropboxapi.com/2/files/list_folder
"file_lock_info": {
                "is_lockholder": true,
                "lockholder_name": "Imaginary User",
                "created": "2015-05-12T15:50:38Z"
            }

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The 'file_lock_info' field is only returned for files that currently have a lock on them, and the 'file_lock_info.created' field would only indicate the time the current lock was created, not the creation time of the file itself. You can find more information on the different file metadata fields in the documentation for FileMetadata, e.g., under the return value of /2/files/get_metadata or /2/files/list_folder[/continue].

    The Dropbox API doesn't return the original creation time for files. I'll send this along as a feature request, but I can't make any promises as to if or when that would be added.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers806 PostsLatest Activity: 2 days ago
217 Following

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 or Facebook.

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!