<?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 Does the 'rev' field in the metadata for a file change if the file is moved or renamed? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Does-the-rev-field-in-the-metadata-for-a-file-change-if-the-file/m-p/135001#M4061</link>
    <description>&lt;P&gt;I'm using the Webhooks API (and the core API) in my application. I need to determine if a file has been deleted from Dropbox or just renamed/moved. The /delta endpoint will only tell you when a path has been deleted/moved/renamed (no metadata), and then provide another entry if the path is new/moved/renamed (with new metadata) &amp;nbsp;After some experimentation it looks like the 'rev' field stays constant for files when I move and/or rename them&amp;nbsp;(at least using the Linux Dropbox client). I'm wondering if I can rely on this always being the case, or whether I should use some other method? Other suggestions I've seen are to download the file to get a hash for it (and then comparing that with a previously stored hash), or doing a similar thing using the 'client_mtime' and 'bytes' fields in the metadata, neither of which are ideal for different reasons (e.g. client_mtime probably can't always be relied upon).&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:40:01 GMT</pubDate>
    <dc:creator>Oliver C.</dc:creator>
    <dc:date>2019-05-29T09:40:01Z</dc:date>
    <item>
      <title>Does the 'rev' field in the metadata for a file change if the file is moved or renamed?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Does-the-rev-field-in-the-metadata-for-a-file-change-if-the-file/m-p/135001#M4061</link>
      <description>&lt;P&gt;I'm using the Webhooks API (and the core API) in my application. I need to determine if a file has been deleted from Dropbox or just renamed/moved. The /delta endpoint will only tell you when a path has been deleted/moved/renamed (no metadata), and then provide another entry if the path is new/moved/renamed (with new metadata) &amp;nbsp;After some experimentation it looks like the 'rev' field stays constant for files when I move and/or rename them&amp;nbsp;(at least using the Linux Dropbox client). I'm wondering if I can rely on this always being the case, or whether I should use some other method? Other suggestions I've seen are to download the file to get a hash for it (and then comparing that with a previously stored hash), or doing a similar thing using the 'client_mtime' and 'bytes' fields in the metadata, neither of which are ideal for different reasons (e.g. client_mtime probably can't always be relied upon).&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:40:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Does-the-rev-field-in-the-metadata-for-a-file-change-if-the-file/m-p/135001#M4061</guid>
      <dc:creator>Oliver C.</dc:creator>
      <dc:date>2019-05-29T09:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does the 'rev' field in the metadata for a file change if the file is moved or renamed?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Does-the-rev-field-in-the-metadata-for-a-file-change-if-the-file/m-p/135002#M4062</link>
      <description>&lt;P&gt;You should not use the rev to track changes to files across moves/renames, and in fact the rev value is always expected to change when a file is moved or renamed. Be careful when comparing rev values by eye though, as subsequent values may differ only very subtly, e.g., by changing a single character slightly.&lt;/P&gt;
&lt;P&gt;Anyway, API v1 unfortunately doesn't have a good way to track moves/renames like this. The other techniques one might try are not ideal, as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers-preview" target="_blank" rel="nofollow noreferrer"&gt;API v2&lt;/A&gt; will, e.g., by &lt;A href="https://www.dropbox.com/developers-preview/documentation/http#documentation" target="_blank" rel="nofollow noreferrer"&gt;offering IDs for files&lt;/A&gt;, but that's currently just a preview.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 01:16:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Does-the-rev-field-in-the-metadata-for-a-file-change-if-the-file/m-p/135002#M4062</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-09-15T01:16:03Z</dc:date>
    </item>
  </channel>
</rss>

