We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

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...)