You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Kimico T.'s avatar
Kimico T.
Explorer | Level 4
8 years ago

[DBFILESUserAuthRoutes listFolderContinue:] returns deleted files - bug in Obj-C V2?

I'm calling to

[DBFILESUserAuthRoutes listFolder:recursive:includeMediaInfo:includeDeleted:includeHasExplicitSharedMembers]

 and passing @(NO) to includeDeleted parameter. Everything works as expected.

 

 

However, when hasMore.boolValue is YES and I'm calling to

[ DBFILESUserAuthRoutes listFolderContinue: ]

there are cases where the result contains deleted files. (even though includeDeleted in the listFolder method clearly indicates not to include ones)

 

It seems like a bug. Can you please confirm? 

 

  • This sounds like the expected behavior. The includeDeleted parameter controls whether or not listFolder[Continue] will return files that were already deleted at the time of the initial call.

    Regardless of includeDeleted though, listFolderContinue will always returns newly deleted files. I.e., in order for your app to get an accurate state of the contents of the folder over time, it needs to be informed of items that were deleted after the initial call.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    This sounds like the expected behavior. The includeDeleted parameter controls whether or not listFolder[Continue] will return files that were already deleted at the time of the initial call.

    Regardless of includeDeleted though, listFolderContinue will always returns newly deleted files. I.e., in order for your app to get an accurate state of the contents of the folder over time, it needs to be informed of items that were deleted after the initial call.
    • Kimico T.'s avatar
      Kimico T.
      Explorer | Level 4

      Got it. Thanks for the clarification!

       

      You should consider documening this behavior as this might confuse many users. (which is, asking the SDK not to include deleted files yet deleted files indeed arrive...)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 4 days ago
333 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!