<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Event log and delete folder. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634221#M29272</link>
    <description>&lt;P&gt;The number of members in the company my tool is designed for may be huge. Develop the system to keep track all the folders and files for each member is time consuming, and I try to avoid that. Is there any quick and easy way to do the bookkeeping?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 13:53:49 GMT</pubDate>
    <dc:creator>tritnguyen</dc:creator>
    <dc:date>2022-11-04T13:53:49Z</dc:date>
    <item>
      <title>Event log and delete folder.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634213#M29270</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to write a tool that keep track all the team members and their files on Dropbox. The information needs to be updated in 5 minutes interval. If a member adds a file, delete a file or rename the file, my tool will add/delete/update that file on the file list. Currently if the member adds a folder, my file list is updated correctly because Dropbox Java SDK sent out one event for each file in the folder. For example, it the folder has 3 files: f1.txt, f2.txt, and f3.txt, there will be 3 events to be sent. However, if the member delete a folder, there only one event to be sent; that event is for the folder, not for an individual file as the json below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"timestamp" : "2022-11-04T04:10:55Z",&lt;BR /&gt;"event_category" : "file_operations",&lt;BR /&gt;"event_type" : {&lt;BR /&gt;".tag" : "file_delete",&lt;BR /&gt;"description" : "Deleted files and/or folders"&lt;BR /&gt;},&lt;BR /&gt;"details" : {&lt;BR /&gt;".tag" : "file_delete_details"&lt;BR /&gt;},&lt;BR /&gt;"actor" : {&lt;BR /&gt;".tag" : "admin",&lt;BR /&gt;"admin" : {&lt;BR /&gt;".tag" : "team_member",&lt;BR /&gt;"account_id" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;"display_name" : "Test Admin",&lt;BR /&gt;"email" : "testAdmin@test.com",&lt;BR /&gt;"team_member_id" : "test_admin_team_member_id"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"origin" : {&lt;BR /&gt;"access_method" : {&lt;BR /&gt;".tag" : "end_user",&lt;BR /&gt;"end_user" : {&lt;BR /&gt;".tag" : "web",&lt;BR /&gt;"session_id" : "session_id"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"geo_location" : {&lt;BR /&gt;"ip_address" : "",&lt;BR /&gt;"city" : "",&lt;BR /&gt;"region" : "",&lt;BR /&gt;"country" : ""&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"involve_non_team_member" : false,&lt;BR /&gt;"context" : {&lt;BR /&gt;".tag" : "team_member",&lt;BR /&gt;".tag" : "team_member",&lt;BR /&gt;"account_id" : "account_id",&lt;BR /&gt;"display_name" : "Test Admin",&lt;BR /&gt;"email" : "testAdmin@test.com",&lt;BR /&gt;"team_member_id" : "test_admin_team_member_id"&lt;BR /&gt;},&lt;BR /&gt;"participants" : [ ],&lt;BR /&gt;"assets" : [ {&lt;BR /&gt;".tag" : "folder",&lt;BR /&gt;"path" : {&lt;BR /&gt;"namespace_relative" : {&lt;BR /&gt;"ns_id" : "xxxxxxxxxxxxx",&lt;BR /&gt;"relative_path" : "/TestFolder/SubTestFolder",&lt;BR /&gt;"is_shared_namespace" : false&lt;BR /&gt;},&lt;BR /&gt;"contextual" : "/TestFolder/SubTestFolder"&lt;BR /&gt;},&lt;BR /&gt;"display_name" : "SubTestFolder",&lt;BR /&gt;"file_id" : "sub_test_folder_file_id",&lt;BR /&gt;"file_size" : 44,&lt;BR /&gt;"file_count" : 4&lt;BR /&gt;} ]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to update my file list correctly; I want to remove f1.txt, f2.txt, and f3.txt from my list after I got the event above; what do I need to do?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 15:18:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634213#M29270</guid>
      <dc:creator>tritnguyen</dc:creator>
      <dc:date>2022-11-04T15:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Event log and delete folder.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634220#M29271</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587588"&gt;@tritnguyen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I want to update my &lt;U&gt;&lt;STRONG&gt;file list&lt;/STRONG&gt;&lt;/U&gt; correctly; I want to remove f1.txt, f2.txt, and f3.txt from my list after I got ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587588"&gt;@tritnguyen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;What about if you re-organize you "file list" in a file/folder tree? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; You can always get a list out from the tree (if needed) and are able handle all event recursively whenever needed (like in situation mentioned by you). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 13:45:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634220#M29271</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-04T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Event log and delete folder.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634221#M29272</link>
      <description>&lt;P&gt;The number of members in the company my tool is designed for may be huge. Develop the system to keep track all the folders and files for each member is time consuming, and I try to avoid that. Is there any quick and easy way to do the bookkeeping?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 13:53:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634221#M29272</guid>
      <dc:creator>tritnguyen</dc:creator>
      <dc:date>2022-11-04T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Event log and delete folder.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634227#M29273</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587588"&gt;@tritnguyen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... Develop the system to keep track all the folders and files for each member is time consuming, and I try to avoid that. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't know such a bookkeeping way, but tree data structure processing typically consumes significantly less time that equivalent list processing (logarithmic vs linear load), if structured properly. That's why much more suitable for big data set (bigger difference between logarithm and line). 🤷&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 14:08:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634227#M29273</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-04T14:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Event log and delete folder.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634241#M29274</link>
      <description>&lt;P&gt;I understand your suggestion; however, under the time I have to finish the task, I think I cannot use it. But thank you anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 14:42:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634241#M29274</guid>
      <dc:creator>tritnguyen</dc:creator>
      <dc:date>2022-11-04T14:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Event log and delete folder.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634305#M29276</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587588"&gt;@tritnguyen&lt;/a&gt; To confirm what Здравко is saying, on Dropbox the deletion of a parent includes the deletion of any children of that parent, so it may be helpful to construct your data model/storage to reflect that as well. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also, the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;] for listing the contents of a folder, which also works that way.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 17:58:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Event-log-and-delete-folder/m-p/634305#M29276</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-04T17:58:57Z</dc:date>
    </item>
  </channel>
</rss>

