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

Saar A.'s avatar
Saar A.
Explorer | Level 4
9 years ago

files events

for the events:

preview_files
edit_files
revert_files_to_previous_version

 is the field in info_dict - is_dir, is meaningful?

Is there a way to get those events for folder and not only files?

  • The is_dir field would indicate if the relevant item is a folder or not. For some events which only occur on files, such as the ones you mentioned, this is expected to always be false. Since these particular events only apply to files, they can't be retrieved for folders. If you want to know when these events occur for files in particular folders, you can check the parent path components in the "path" for the file.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    The is_dir field would indicate if the relevant item is a folder or not. For some events which only occur on files, such as the ones you mentioned, this is expected to always be false. Since these particular events only apply to files, they can't be retrieved for folders. If you want to know when these events occur for files in particular folders, you can check the parent path components in the "path" for the file.